Interface IToolsMenuButton
Provides an interface for handling Tools Menu Button functionality
Namespace: Unity.EditorXR
Assembly: solution.dll
Syntax
public interface IToolsMenuButton
Properties
| Name | Description |
|---|---|
| closeButton | Closes this button |
| destroy | Destroys this button |
| highlighted | Bool denoting button highlight state |
| hoverExit | Performed when a hover exit is detected on this button |
| iconHighlightedLocalZOffset | The z positional offset to apply when button if highlighted |
| implementsSecondaryButton | Bool denoting that this button implements a secondary button The MainMenu and SelectionTool are examples of buttons that don't implement a secondary button for closing |
| interactable | Bool denoting button interactable state |
| isActiveTool | Bool denoting that this button represents the active tool |
| maxButtonCount | The maximum number of buttons that can be displayed by a given ToolsMenu |
| order | The order of this button Position/rotation may change according to order |
| previewToolDescription | String description of the tool that this button represents |
| previewToolType | The type to preview in the button temporarily |
| primaryUIContentContainerLocalScale | The scale of the ui content in the primary content container |
| secondaryButtonHighlighted | Bool denoting the secondary button highlight state |
| selectTool | Selects the tool based on the type assigned to this button |
| showAllButtons | Shows all tool buttons for a given ToolsMenu |
| stencilRef | Shared stencil ID for all buttons in this menu instance |
| toolType | The toolType assigned to this button |
| tooltipTarget | Transform used for reference when placing tooltips |
| tooltipVisible | Bool denoting that the tooltip is visible |
| visibleButtonCount | Returns the visible button count for a given ToolsMenu used by buttons to position themselves |
Events
| Name | Description |
|---|---|
| hovered | Performed when a hover action is detected by this button |