Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

CreateAssetMenuAttribute.menuName

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public string menuName;

Description

The display name for this type shown in the Assets/Create menu.

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.