s&box docs

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)

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.

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.System
Doc IDT:Sandbox.AnyOfType`1

On this page