Attribute to mark custom toolbar buttons for automatic discovery and registration. More...
Public Member Functions | |
| RealvirtualToolbarButtonAttribute (int order=1000) | |
| Creates a new RealvirtualToolbarButtonAttribute with specified order. | |
Properties | |
| int | Order [get, set] |
| Display order of the button in the toolbar (lower values appear first) | |
| string | Group [get, set] |
| Optional group name for organizing buttons. | |
| bool | EnabledByDefault [get, set] |
| Whether this button should be enabled by default. | |
| bool | RequiresSelection [get, set] |
| Whether this button requires an active selection in the scene. | |
| bool | PlayModeOnly [get, set] |
| Whether this button is only available in play mode. | |
| bool | EditModeOnly [get, set] |
| Whether this button is only available in edit mode. | |
Detailed Description
Attribute to mark custom toolbar buttons for automatic discovery and registration.
Apply this attribute to classes that inherit from RealvirtualToolbarButtonBase to automatically add them to the realvirtual Toolbar overlay in the Scene view.
Example usage: [RealvirtualToolbarButton(order: 100, group: "Custom")] public class MyCustomButton : RealvirtualToolbarButtonBase { // Implementation }
Constructor & Destructor Documentation
◆ RealvirtualToolbarButtonAttribute()
| realvirtual.RealvirtualToolbarButtonAttribute.RealvirtualToolbarButtonAttribute | ( | int | order = 1000 | ) |
Creates a new RealvirtualToolbarButtonAttribute with specified order.
Property Documentation
◆ EditModeOnly
|
getset |
Whether this button is only available in edit mode.
◆ EnabledByDefault
|
getset |
Whether this button should be enabled by default.
◆ Group
|
getset |
Optional group name for organizing buttons.
◆ Order
|
getset |
Display order of the button in the toolbar (lower values appear first)
◆ PlayModeOnly
|
getset |
Whether this button is only available in play mode.
◆ RequiresSelection
|
getset |
Whether this button requires an active selection in the scene.