Class LocalizedAssetBehaviour<TObject>
Base class for all asset localization components.
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 |