mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-02-02 11:42:57 +08:00
chore: docs updates for new menu installer behavior
This commit is contained in:
parent
b9fde37285
commit
74dc37d0d7
@ -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.
|
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.
|
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.
|
@ -25,4 +25,9 @@ Menu Installerコンポーネントを使えば、アバターのエクスプレ
|
|||||||
なので、サブメニューとして入れたいなら、そのサブメニューのほかに、サブメニューコントロールだけが入った追加用メニューアセットも作ってください。
|
なので、サブメニューとして入れたいなら、そのサブメニューのほかに、サブメニューコントロールだけが入った追加用メニューアセットも作ってください。
|
||||||
|
|
||||||
プレハブに、[Parameters](parameters.md)コンポーネントと同じオブジェクトにMenu Installerを追加してください。
|
プレハブに、[Parameters](parameters.md)コンポーネントと同じオブジェクトにMenu Installerを追加してください。
|
||||||
プレハブ開発者向け設定を開き、「インストールされるメニュー」に追加したいメニューを追加してください。
|
プレハブ開発者向け設定を開き、「インストールされるメニュー」に追加したいメニューを追加してください。
|
||||||
|
|
||||||
|
### ほかのアセットのメニューを拡張
|
||||||
|
|
||||||
|
ほかのMenu Installerでインストールされるメニューを拡張したい場合もあるかもしれません。
|
||||||
|
別のMenu Installerでインストールされるメニューを「インストール先」で指定することで拡張できます。
|
Loading…
Reference in New Issue
Block a user