Context Menu Button
Notes:
Whether located in a MonoBehaviour, class, or struct, any method marked with the [ContextMenu] attribute will be featured in the tree-view contextual menu and as buttons in the inspector interface.
This preference only affects the appearance of methods in the Value Inspector. The contextual menu in the tree-view will always include these methods, ensuring consistent functionality across the interface.
Configuration
Located under Preferences > Inspector > Show Context Menu Button, this setting allows you to control the display of [ContextMenu] methods as buttons within the Value Inspector panel. Enabling this option transforms eligible methods into interactive buttons for quick execution, while disabling it reverts them to their standard listing format.
How It Works
When enabled:
- Value Inspector: Methods marked with the [ContextMenu] attribute are displayed as buttons next to their respective properties for quick access and execution.
When disabled:
- Value Inspector: Methods revert to standard listing without direct invocation buttons. However, these methods will still be accessible through the tree-view’s contextual menu.
For any queries or support regarding Inspector feature, please refer to our Support section or visit our FAQ page.