Class LocalizeAudioClipBehaviour | Localization | 0.5.1-preview
docs.unity3d.com
    Show / Hide Table of Contents

    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.

    Inheritance
    Object
    LocalizedAssetBehaviour<AudioClip>
    LocalizeAudioClipBehaviour
    Inherited Members
    LocalizedAssetBehaviour<AudioClip>.AssetReference
    LocalizedAssetBehaviour<AudioClip>.OnEnable()
    LocalizedAssetBehaviour<AudioClip>.OnDisable()
    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)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023