Class IToolsMenuMethods
Namespace: UnityEditor.Experimental.EditorVR
Syntax
public static class IToolsMenuMethods
Properties
mainMenuActivatorSelected
Declaration
public static Action<Transform> mainMenuActivatorSelected { get; set; }
Property Value
| Type | Description |
|---|---|
| Action<Transform> |
selectTool
Declaration
public static Action<Transform, Type> selectTool { get; set; }
Property Value
| Type | Description |
|---|---|
| Action<Transform, Type> |
Methods
MainMenuActivatorSelected(IToolsMenu, Transform)
Called when selecting the main menu activator
Declaration
public static void MainMenuActivatorSelected(this IToolsMenu obj, Transform rayOrigin)
Parameters
| Type | Name | Description |
|---|---|---|
| IToolsMenu | obj | |
| Transform | rayOrigin | This menu's RayOrigin |
SelectTool(IToolsMenu, Transform, Type)
Selects a tool, based on type, from a Tools Menu Button
Declaration
public static void SelectTool(this IToolsMenu obj, Transform rayOrigin, Type type)
Parameters
| Type | Name | Description |
|---|---|---|
| IToolsMenu | obj | |
| Transform | rayOrigin | This menu's RayOrigin |
| Type | type | The type of the tool that is to be selected |