add_component_menu¶
function in InfEngine.components
Description¶
Specify where this component appears in the Add Component menu.
Args:
path: Menu path like "Physics/Character Controller".
description
Specifies the menu path where this component appears in the editor's Add Component menu. Use slashes to create nested categories (e.g., "Gameplay/AI/Patrol").
Without this decorator, custom components appear at the top level of the menu.
Parameters¶
| Name | Type | Description |
|---|---|---|
| path | str |
Example¶
example