docs.unity.cn
    Show / Hide Table of Contents

    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
    Object
    LocalizedMonoBehaviour
    LocalizedAssetBehaviour<GameObject, LocalizedGameObject>
    LocalizedAssetEvent<GameObject, LocalizedGameObject, UnityEventGameObject>
    LocalizedGameObjectEvent
    Inherited Members
    LocalizedAssetEvent<GameObject, LocalizedGameObject, UnityEventGameObject>.OnUpdateAsset
    LocalizedAssetEvent<GameObject, LocalizedGameObject, UnityEventGameObject>.UpdateAsset(GameObject)
    LocalizedAssetBehaviour<GameObject, LocalizedGameObject>.AssetReference
    LocalizedAssetBehaviour<GameObject, LocalizedGameObject>.UpdateAsset(GameObject)
    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)
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Friday, March 4, 2022
    Terms of use