diff --git a/docs~/docs/reference/menu-item-auto-params.png b/docs~/docs/reference/menu-item-auto-params.png new file mode 100644 index 00000000..fa72f111 Binary files /dev/null and b/docs~/docs/reference/menu-item-auto-params.png differ diff --git a/docs~/docs/reference/menu-item.md b/docs~/docs/reference/menu-item.md index 6e1db156..1f53e0a9 100644 --- a/docs~/docs/reference/menu-item.md +++ b/docs~/docs/reference/menu-item.md @@ -34,4 +34,19 @@ In order to define where a menu item will go in the menu, another component will * The menu item can be on the same game object as a [Menu Installer](menu-installer) component. * The menu item can be the child of a [Menu Group](menu-group) object (which would typically be on a game object with a Menu Installer component) -Unbound menu items have no effect. \ No newline at end of file +Unbound menu items have no effect. + +### Automatic Parameter Creation + +When you specify a parameter name that is not declared in a [MA Parameters](parameters.md) component or VRC Expressions +Parameter asset, the Menu Item will create a parameter for you automatically. When this happens, you'll see some +checkboxes +to control whether the value is saved/synced. + +![Automatic Parameter Creation](menu-item-auto-params.png) + +If you click "Is Default", this menu item will be set as the default for this parameter. If multiple menu items are set +to "Is Default", the results are undefined. Don't do that! + +If your menu item has no parameter name set, you'll still see these options; a parameter will be created if you have +any [Reactive Objects](./reaction/index.md) controlled by this menu item. \ No newline at end of file diff --git a/docs~/i18n/ja/docusaurus-plugin-content-docs/current/reference/menu-item-auto-params.png b/docs~/i18n/ja/docusaurus-plugin-content-docs/current/reference/menu-item-auto-params.png new file mode 100644 index 00000000..0ac7e8a4 Binary files /dev/null and b/docs~/i18n/ja/docusaurus-plugin-content-docs/current/reference/menu-item-auto-params.png differ diff --git a/docs~/i18n/ja/docusaurus-plugin-content-docs/current/reference/menu-item.md b/docs~/i18n/ja/docusaurus-plugin-content-docs/current/reference/menu-item.md index b9b6cfc2..04117fdf 100644 --- a/docs~/i18n/ja/docusaurus-plugin-content-docs/current/reference/menu-item.md +++ b/docs~/i18n/ja/docusaurus-plugin-content-docs/current/reference/menu-item.md @@ -39,3 +39,16 @@ MA Menu Itemコンポーネントは、Unityのヒエラルキー内でExpressio * メニュー項目を[Menu Group](menu-group)オブジェクトの子に配置する(Menu Installerコンポーネントがあるゲームオブジェクトに配置される場合が多い)。 配置されないメニュー項目は効果がありません。 + +### パラメーターの自動生成 + +[MA Parameters](parameters.md)コンポーネントやVRC Expressions Parameterアセットで宣言されていないパラメーター名を指定すると、 +Menu Itemはパラメーターを自動的に作成します。この場合、保存/同期されるかどうかを制御するためのチェックボックスが表示されます。 + +![パラメーターの自動生成](menu-item-auto-params.png) + +「初期設定にする」をクリックすると、このメニュー項目がこのパラメーターのデフォルトに設定されます。 +複数のメニュー項目が「初期設定にする」に設定されている場合、結果は不定になるのでやめましょう。 + +メニュー項目にパラメーター名が設定されていない場合でも、これらのオプションが表示されます。 +その場合、ここのメニュー項目によって制御される[Reactive Objects](./reaction/index.md)がある場合、パラメーターが自動作成されます。