ドキュメント

Unity Engine

Unity Engine

menuName

The display name for this type shown in the Assets/Create menu.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public string menuName { get; set; }

Remarks

As with other menu item code, use a forward-slash ("/") path separator to group items into submenus. For example, specifying a MenuName of "Gameplay/Objective" will cause the menu item for a type to be 'Objective' inside a 'Gameplay' submenu of the Create submenu.
Note: Trailing space characters are removed from the menu name string. This means menu items whose names differ only by trailing space characters will be created as the same menu item.