Class LocalizedAssetBehaviourEvent<TObject, TReference, TEvent>
Localized Asset Behaviour component that will call a UnityEvent to update the localized asset.
Inheritance
LocalizedAssetBehaviour<TObject, TReference>
LocalizedAssetBehaviourEvent<TObject, TReference, TEvent>
Inherited Members
Namespace: UnityEngine.Localization.Components
Syntax
public class LocalizedAssetBehaviourEvent<TObject, TReference, TEvent> : LocalizedAssetBehaviour<TObject, TReference> where TObject : Object where TReference : LocalizedAsset<TObject>, new()
where TEvent : UnityEvent<TObject>, new()
Type Parameters
| Name | Description |
|---|---|
| TObject | |
| TReference | |
| TEvent |
Properties
OnUpdateAsset
Event that will be called when the localized asset is ready, usually called after the Locale has changed or at initialization.
Declaration
public TEvent OnUpdateAsset { get; set; }
Property Value
| Type | Description |
|---|---|
| TEvent |
Methods
UpdateAsset(TObject)
Invokes the OnUpdateAsset event.
Declaration
protected override void UpdateAsset(TObject localizedAsset)
Parameters
| Type | Name | Description |
|---|---|---|
| TObject | localizedAsset |
Overrides
UnityEngine.Localization.Components.LocalizedAssetBehaviour<TObject, TReference>.UpdateAsset(TObject)