Class LocalizedAssetBehaviour<TObject> | Localization | 0.5.1-preview
docs.unity.cn
    Show / Hide Table of Contents

    Class LocalizedAssetBehaviour<TObject>

    Base class for all asset localization components.

    Inheritance
    Object
    LocalizedAssetBehaviour<TObject>
    LocalizeAudioClipBehaviour
    LocalizeTextureBehaviour
    Namespace: UnityEngine.Localization.Components
    Syntax
    public abstract class LocalizedAssetBehaviour<TObject> : MonoBehaviour
    Type Parameters
    Name Description
    TObject

    Properties

    AssetReference

    Reference to the localized asset entry and table.

    Declaration
    public LocalizedAssetBehaviour<TObject>.LocalizedAssetReference AssetReference { get; set; }
    Property Value
    Type Description
    LocalizedAssetBehaviour.LocalizedAssetReference<>

    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 © 2019 Unity Technologies
    Generated by DocFX