Search settings and preferences
Execute Static API methods
Search the Unity Editor main menu
Use the Menus search provider to access the Unity Editor main menu commands.
Query syntax
Provider token: m:
Query example: List all menu commands related to splines, from all submenus.
m: splines
Provider filters
The Menus provider has additional filters in the visual query builder. This table lists the filters and their textual query equivalents.
Filter |
Search token |
Query example |
Description |
Menu Path |
m: id:<"path"> |
m: id:"2d/tiles" |
Searches only within the 2D > Tiles menu. |
Results
Search window tab: Menus.
Actions
Default action: Executes the menu command.
Notes:
- For commands like Create, make sure you’re in the correct folder in the Project window before executing the command.
- For commands that interact with GameObjects in the Hierarchy window, make sure to select the correct GameObjectThe fundamental object in Unity scenes, which can represent characters, props, scenery, cameras, waypoints, and more. A GameObject’s functionality is defined by the Components attached to it. More info
See in Glossary in the Hierarchy window before executing the command, or the command might work at the sceneA Scene contains the environments and menus of your game. Think of each unique Scene file as a unique level. In each Scene, you place your environments, obstacles, and decorations, essentially designing and building your game in pieces. More info
See in Glossary level. For example, if you execute Create Empty Child while your focus is in the Project window, the Unity Editor creates the GameObject at the scene level rather than as a child of a GameObject.
- Some commands, like Duplicate, don’t execute from the Search window.
Additional resources
Search settings and preferences
Execute Static API methods
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。