For AI agents: the complete documentation index is available at /AchEngine/ja/llms.txt, the full documentation bundle is available at /AchEngine/ja/llms-full.txt, and this page is available as Markdown at /AchEngine/ja/usage/localization/index.md.

Localization — 概要

AchEngine Localization は JSON ロケールファイルを読み込み、実行時にキーを解決し、型安全なキー定数を生成できます。

主な構成要素

型役割
LocalizationManager文字列取得とロケール変更の静的 API
LocalizationSettingsデフォルト・フォールバック設定
LocaleDatabaseロケールと JSON TextAsset の対応
LocalizedStringInspector で選択できるキー
LocalizedTextText / TMP_Text の自動更新

基本使用

string title = LocalizationManager.Get("menu.title");
string welcome = LocalizationManager.Get("dialog.welcome", "Player1", 5);
LocalizationManager.LocaleChanged += OnLocaleChanged;
LocalizationManager.SetLocale("ja");
{
  "menu.title": "設定",
  "dialog.welcome": "ようこそ、{0}さん"
}

LocalizedText を Text または TMP_Text に追加すると、ロケール変更時に自動更新されます。TMP には ACHENGINE_LOCALIZATION_TMP が必要です。

FontAsset Maker ではロケールごとの文字を収集し、言語別 TMP FontAsset を作成できます。

次のステップ