Localization/LocaleStringDriver

Last-modified: 2025-03-09 (日) 19:11:29


LocaleStringDriver(ロケール ストリング ドライバー)

指定したキーから翻訳された文字列に変換するコンポーネント


項目

Enabled:
効果なし。

Target:
駆動先。<string>

Key:
ロケールキー。(翻訳対象)
例1:「General.Start」→「開始」
例2:「General.Notice」→「お知らせ」
例3:「Interaction.EnterAnchor」→「アンカーに入る」
例4:「Interaction.EquipAvatar」→「アバターを着る」

Format:
フォーマット。
{0}

Locale:
ロケール。
(StaticLocaleProviderを指定する。大抵はワールドRootスロットの一番上にある。)

SetArgumentSource(string kye,IField field)
?

SetArgumentValue(string key,object value)
?


使用例

  • 適当なスロットにアタッチ。Target、Key、Localeを設定する。
    翻訳済みの文字列を利用できる。


その他