Class LocalizedAssetBehaviour<TObject, TReference> | Localization | 0.7.1-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class LocalizedAssetBehaviour<TObject, TReference>

    Base class for all asset localization components.

    Inheritance
    Object
    LocalizedAssetBehaviour<TObject, TReference>
    LocalizedAssetEvent<TObject, TReference, TEvent>
    Namespace: UnityEngine.Localization.Components
    Syntax
    public abstract class LocalizedAssetBehaviour<TObject, TReference> : MonoBehaviour where TObject : Object where TReference : LocalizedAsset<TObject>, new()
    Type Parameters
    Name Description
    TObject
    TReference

    Properties

    AssetReference

    Reference to the localized asset entry and table.

    Declaration
    public TReference AssetReference { get; set; }
    Property Value
    Type Description
    TReference

    Methods

    OnDisable()

    Stops listening for changes to AssetReference.

    Declaration
    protected virtual void OnDisable()

    OnEnable()

    Starts listening for changes to AssetReference.

    Declaration
    protected virtual void OnEnable()

    UpdateAsset(TObject)

    Called whenever the localized asset is updated, such as when the Locale changes or when initializing.

    Declaration
    protected abstract void UpdateAsset(TObject localizedAsset)
    Parameters
    Type Name Description
    TObject localizedAsset
    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