Version: Unity 6.7 Beta (6000.7)
LanguageEnglish
  • C#

Serializable

struct in UnityEngine.Audio

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 serialize a reference to any Object, MonoBehaviour or ScriptableObject that implements IAudioEffect.

Interface references are not directly serializable in user scripts if they are implemented on a Object, even if using SerializeReference.

Properties

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

Constructors

Constructor Description
IAudioEffect.Serializable Construct this serializable struct with an initial IAudioEffect 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.