docs.unity3d.com

ProBuilder 6.0.1

Search Results for

    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
    Inherited Members
    MenuAction.onPerformAction
    MenuAction.group
    MenuAction.toolbarPriority
    MenuAction.icon
    MenuAction.iconPath
    MenuAction.tooltip
    MenuAction.menuTitle
    MenuAction.hasFileMenuEntry
    MenuAction.menuActionState
    MenuAction.validSelectModes
    MenuAction.enabled
    MenuAction.hidden
    MenuAction.optionsMenuState
    MenuAction.PerformAction()
    MenuAction.DoAlternateAction()
    MenuAction.PerformAltAction()
    MenuAction.CreateSettingsContent()
    MenuAction.DoSceneGUI(SceneView)
    MenuAction.OnSettingsGUI()
    MenuAction.OnSettingsEnable()
    MenuAction.OnSettingsDisable()
    MenuAction.iconMode
    MenuAction.changed
    MenuAction.ContentsChanged()
    MenuAction.RegisterChangedCallbacks()
    MenuAction.UnregisterChangedCallbacks()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.ProBuilder
    Assembly: Unity.ProBuilder.Editor.dll
    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.

    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

    Methods

    PerformActionImplementation()

    Performs the action for this menu item. Use this method to implement the action and then use PerformAction() to call it.

    Declaration
    protected override ActionResult PerformActionImplementation()
    Returns
    Type Description
    ActionResult

    A new ActionResult with a summary of the state of the action's success.

    Overrides
    MenuAction.PerformActionImplementation()
    In This Article
    • Fields
      • m_Tool
    • Properties
      • Tool
    • Methods
      • PerformActionImplementation()
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)