IAudioGenerator.Serializable
A helper struct that allows you to object select and serialize a reference to any Object, MonoBehaviour or ScriptableObject that implements IAudioGenerator.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.Audio
- Assembly: UnityEngine.AudioModule
public struct IAudioGenerator.Serializable
Remarks
Interface references are not directly serializable in user scripts if they are implemented on a Object, even if using SerializeReference. This helper struct additionally provides a PropertyDrawer giving a UI with an object field properly scoped to IAudioGenerator objects.
Constructors
Constructor | Description |
|---|---|
| Serializable(UnityEngine.Audio.IAudioGenerator) | Construct this serializable struct with an initial IAudioGenerator value. |
Properties
Property | Description |
|---|---|
| definition | Get and Set the serialized object as a IAudioGenerator. |