A helper struct that allows you to object select and serialize a reference to any UnityEngine.Object, MonoBehaviour or ScriptableObject that implements IAudioGenerator.
Interface references are not directly serializable in user scripts if they are implemented on a UnityEngine.Object, even if using SerializeReference. This helper struct additionally provides a PropertyDrawer giving a UI with an object field properly scoped to IAudioGenerator objects.
Property | Description |
---|---|
definition | Get and Set the serialized object as a IAudioGenerator. |
Constructor | Description |
---|---|
IAudioGenerator.Serializable | Construct this serializable struct with an initial IAudioGenerator value. |