chore: docs updates for new menu installer behavior

This commit is contained in:
bd_ 2023-01-02 20:29:07 +09:00
parent b9fde37285
commit 74dc37d0d7
2 changed files with 12 additions and 2 deletions

View File

@ -25,4 +25,9 @@ First, create an expressions menu with the controls you want to add. This menu w
As such, if you want a submenu of your own, you will need to create two menu assets: One for the submenu control, and one for the inner menu itself.
Add a Menu Installer component to your prefab, at the same level as your [Parameters](parameters.md) component.
Then, open the Prefab Developer Options tag, and add the desired menu to "Menu to install". Done!
Then, open the Prefab Developer Options tag, and add the desired menu to "Menu to install". Done!
### Extending menus of other assets
In some cases, it can be useful to extend a menu that is being installed by another Menu Installer component.
This can be done by specifying the menu asset (or a submenu) that is being installed by a Menu Installer in the "Install To" field.

View File

@ -25,4 +25,9 @@ Menu Installerコンポーネントを使えば、アバターのエクスプレ
なので、サブメニューとして入れたいなら、そのサブメニューのほかに、サブメニューコントロールだけが入った追加用メニューアセットも作ってください。
プレハブに、[Parameters](parameters.md)コンポーネントと同じオブジェクトにMenu Installerを追加してください。
プレハブ開発者向け設定を開き、「インストールされるメニュー」に追加したいメニューを追加してください。
プレハブ開発者向け設定を開き、「インストールされるメニュー」に追加したいメニューを追加してください。
### ほかのアセットのメニューを拡張
ほかのMenu Installerでインストールされるメニューを拡張したい場合もあるかもしれません。
別のMenu Installerでインストールされるメニューを「インストール先」で指定することで拡張できます。