切換
舊版
前往
大廳
主題

Localization

CatMaster | 2021-04-22 23:02:40 | 巴幣 0 | 人氣 312

com.unity.localization



更改Key
[SerializeField] LocalizeStringEvent LSE;
LSE.StringReference.SetReference("TableName", "Key");

Key內容抓取
LSE.StringReference.GetLocalizedString().Result



2021/10/06
抓變數 Local Variables

update
RefreshString()

2021/10/23
Excel CSV to Table
using UnityEditor.Localization;
using UnityEngine.Localization.Tables;

[SerializeField] StringTableCollection _STC = null;

StringTable[] st = new StringTable[_STC.StringTables.Count];

        int i = 0;
        foreach (var Item in _STC.StringTables)
        {
            st[0] = Item;
            Item.AddEntry("TEST2", "123");
            i++;
        }

創作回應

更多創作