TypeRefAttribute¶
Namespace:
SideXP.Core| Inherits from:PropertyAttribute
Marks a serialized string property as containing the AssemblyQualifiedName of a Type.
Remarks
This is used to ensure that the serialized type name is correctly synced with the actual type declared in the script that declares the named type. To be clear, this is not a magic attribute that makes types serializable, but a utility to make it happen. The internal logic makes sure that even if the "real" type's name changes, the value of this property automatically changes too to match the new type name.
Properties¶
Readonly¶
If enabled, the field will be disabled in the inspector.