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/codegen.md.

キー定数コード生成

ドット区切りのキーからネストした静的クラスを生成できます。

{
  "menu.start": "開始",
  "item.sword.name": "鉄の剣"
}
L.Menu.Start
L.Item.Sword.Name

LocalizationSettings の generatedClassName、generatedNamespace、generatedOutputPath とデータベースを設定し、AchEngine › Localization › Generate Key Class を実行します。

LocalizedString をフィールドに使うと Inspector のキー選択ドロップダウンを利用できます。

[LocalizedString]
[SerializeField] private LocalizedString _title;