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
Assembly: Unity.Localization.dll
Syntax
[AddComponentMenu("Localization/Asset/Localize Prefab Event")]
public class LocalizedGameObjectEvent : LocalizedAssetEvent<GameObject, LocalizedGameObject, UnityEventGameObject>
Methods
Name | Description |
---|---|
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. |