Class IToolsMenuMethods | Unity Reflect | 1.1.0-preview.6
docs.unity3d.com
    Show / Hide Table of Contents

    Class IToolsMenuMethods

    Inheritance
    Object
    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

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023