Version: Unity 6.3 Beta (6000.3)
LanguageEnglish
  • C#

Serializable

struct in UnityEngine.Audio

/

Implemented in:UnityEngine.AudioModule

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

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.

Properties

Property Description
definition Get and Set the serialized object as a IAudioGenerator.

Constructors

Constructor Description
IAudioGenerator.Serializable Construct this serializable struct with an initial IAudioGenerator value.

Public Methods

Method Description
Get A type-safe helper method that retrieves the internal value.
Set A type-safe helper method that sets the internal value.