Class SerializableMonoScript<T>
Namespace: Aspid.FastTools.Types
Assembly: Aspid.FastTools.dll
SerializableMonoScript constrained to types assignable to T.
[Serializable]
public sealed class SerializableMonoScript<T> : SerializableMonoScript, ISerializableType, IEquatable<SerializableTypeBase>, ISerializationCallbackReceiver
Type Parameters
T
The base type that the Inspector requires when a type is picked or dropped.
Inheritance
object ← SerializableTypeBase ← SerializableMonoScript ← SerializableMonoScript<T>
Implements
ISerializableType, IEquatable<SerializableTypeBase>, ISerializationCallbackReceiver
Extension Methods
Examples
[SerializeField] private SerializableMonoScript<Enemy> _enemyType;
Remarks
Assigned to a field declared as SerializableMonoScript, it is reloaded without the constraint.
Properties
BaseType
Gets the base type that types offered by the picker are assignable to; Object when unconstrained.
public override Type BaseType { get; }
Property Value
Remarks
A loaded type is not checked against it: a name stored before the constraint changed resolves as is.