API ReferenceSandbox
public sealed struct Sandbox.AnyOfType<T>
A wrapper that holds an instance of any concrete type assignable to . Use this as a property type when you want the inspector to let you pick from all non-abstract implementations of an abstract class or interface. public AnyOfType MyScatterer { get; set; } Serialization stores the concrete type name alongside the property values
Constructors
Showing 1 constructors
public AnyOfType<T>(T value)
No results match this filter.
Properties
Showing 2 properties
public bool Sandbox.AnyOfType<T>.HasValue { get; set; }
Returns true if `Sandbox.AnyOfType.Value` is not null.
public T Sandbox.AnyOfType<T>.Value { get; set; }
The concrete instance, or null if no type is selected.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.System |
| Doc ID | T:Sandbox.AnyOfType`1 |