Skip to main content

SerializedInterfaceAttribute

A class in Alta.Attributes, the global namespace.

Property attribute that marks a serialized field as holding an object that must implement a given interface, probably for an inspector picker.

Constructors​

MemberWhat it is
SerializedInterfaceAttribute(Type interfaceType)Creates a SerializedInterfaceAttribute from interfaceType.

Properties​

MemberWhat it is
Type InterfaceType { get; private set; }The required interface. Stays null if the type passed in isn't an interface.