Class LocalizedGameObjectEvent
Component that can be used to Localize a Prefab. When the Locale is changed the prefab will be instantiated as a child of the gameobject this component is attached to, the instance will then be sent through OnUpdateAsset.
Inheritance
LocalizedGameObjectEvent
Inherited Members
Namespace: UnityEngine.Localization.Components
Syntax
public class LocalizedGameObjectEvent : LocalizedAssetEvent<GameObject, LocalizedGameObject, UnityEventGameObject>
Methods
UpdateAsset(GameObject)
Called when AssetReference has been loaded. This will occur when the game first starts after InitializationOperation has completed and whenever the SelectedLocale is changed.
Declaration
protected override void UpdateAsset(GameObject localizedAsset)
Parameters
Type | Name | Description |
---|---|---|
GameObject | localizedAsset |
Overrides
UnityEngine.Localization.Components.LocalizedAssetEvent<GameObject, UnityEngine.Localization.LocalizedGameObject, UnityEngine.Localization.Events.UnityEventGameObject>.UpdateAsset(GameObject)