Class LocalizeAudioClipBehaviour
Component that can be used to Localize an Audio Clip asset. Provides an update event that can be used to automatically update the clip whenever the Locale changes.
Inherited Members
Namespace: UnityEngine.Localization.Components
Syntax
public class LocalizeAudioClipBehaviour : LocalizedAssetBehaviour<AudioClip>
Properties
OnUpdateAsset
Event that will be called when the localized Audio Clip is ready, usually called after the Locale has changed or at initialization.
Declaration
public LocalizeAudioClipBehaviour.UnityEventAudioClip OnUpdateAsset { get; set; }
Property Value
Type | Description |
---|---|
LocalizeAudioClipBehaviour.UnityEventAudioClip |
Methods
UpdateAsset(AudioClip)
Invokes the OnUpdateAsset event.
Declaration
protected override void UpdateAsset(AudioClip localizedAsset)
Parameters
Type | Name | Description |
---|---|---|
AudioClip | localizedAsset |
Overrides
UnityEngine.Localization.Components.LocalizedAssetBehaviour<AudioClip>.UpdateAsset(AudioClip)