Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

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

definitionGet and Set the serialized object as a IAudioGenerator.

Methods

Method

Description

GetA type-safe helper method that retrieves the internal value.
SetA type-safe helper method that sets the internal value.