Not sure @menu works

Hi all. I am not sure @menu from _decorator is working. I don’t see my component when I put this method.
Also I am wondering if it is possible to add my component to node create menu: Thanks

image

You can find your component in the Inspector’s Add Component button

The hierarchy is now generated from the template, and not every component has a button

This menu cannot be dynamically modified for the time being

Hi, I tried to find in Add Component Button, but there isn’t folder and component:

image
image

Components written in the script are placed in the custom script.
There will be categories in the custom script.

So what the goal of @menu?

@Menu falls into two categories.

Engine modules become categories directly.
The code in the script will be placed in “Custom Scripts” to generate a new category.

image

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.