docs.unity3d.com
    Show / Hide Table of Contents

    Class MenuToolToggle

    Base class from which any action that is represented in the ProBuilder toolbar inherits.

    Inheritance
    Object
    MenuAction
    MenuToolToggle
    CutToolToggle
    Inherited Members
    MenuAction.onPerformAction
    MenuAction.disabledIcon
    MenuAction.group
    MenuAction.toolbarPriority
    MenuAction.icon
    MenuAction.tooltip
    MenuAction.menuTitle
    MenuAction.hasFileMenuEntry
    MenuAction.menuActionState
    MenuAction.validSelectModes
    MenuAction.enabled
    MenuAction.hidden
    MenuAction.optionsMenuState
    MenuAction.PerformAction()
    MenuAction.PerformActionImplementation()
    MenuAction.DoAlternateAction()
    MenuAction.OnSettingsGUI()
    MenuAction.OnSettingsEnable()
    MenuAction.OnSettingsDisable()
    MenuAction.iconMode
    MenuAction.DoAltButton(GUILayoutOption[])
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEditor.ProBuilder
    Syntax
    public abstract class MenuToolToggle : MenuAction
    Remarks

    A MenuToolToggle is a special action that creates an EditorTool instance and sets it as the active tool.

    Constructors

    MenuToolToggle()

    Creates a new toggle button on the ProBuilder toolbar in the Editor for this action. Toggle buttons have two states: enabled and disabled. When the toggle is enabled, the tool is active.

    Declaration
    protected MenuToolToggle()

    Fields

    m_Tool

    Holds a reference to the EditorTool instance created by the action.

    Declaration
    protected EditorTool m_Tool
    Field Value
    Type Description
    EditorTool

    Properties

    Tool

    Gets a reference to the EditorTool instance created by the action.

    Declaration
    public EditorTool Tool { get; }
    Property Value
    Type Description
    EditorTool
    Back to top
    Terms of use
    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