docs.unity3d.com
    Show / Hide Table of Contents

    Class CutToolToggle

    Represents the Cut tool button on the ProBuilder toolbar in the Editor.

    Inheritance
    Object
    MenuAction
    MenuToolToggle
    CutToolToggle
    Inherited Members
    MenuToolToggle.m_Tool
    MenuToolToggle.Tool
    MenuAction.onPerformAction
    MenuAction.disabledIcon
    MenuAction.toolbarPriority
    MenuAction.menuTitle
    MenuAction.menuActionState
    MenuAction.hidden
    MenuAction.optionsMenuState
    MenuAction.PerformAction()
    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.Actions
    Syntax
    public class CutToolToggle : MenuToolToggle

    Properties

    enabled

    Gets whether or not the action is valid given the current selection.

    True if this action is valid with the current selection and mode.

    Declaration
    public override bool enabled { get; }
    Property Value
    Type Description
    Boolean
    Overrides
    MenuAction.enabled
    See Also
    hidden

    group

    Gets the category assigned to this action.

    Declaration
    public override ToolbarGroup group { get; }
    Property Value
    Type Description
    ToolbarGroup
    Overrides
    MenuAction.group

    hasFileMenuEntry

    Gets whether this class should have an entry built into the hardware menu. This is not implemented for custom actions.

    Declaration
    protected override bool hasFileMenuEntry { get; }
    Property Value
    Type Description
    Boolean
    Overrides
    MenuAction.hasFileMenuEntry

    icon

    Gets the icon to display on the toolbar for this action.

    Declaration
    public override Texture2D icon { get; }
    Property Value
    Type Description
    Texture2D
    Overrides
    MenuAction.icon
    Remarks

    This property is not used when the Toolbar display mode is set to text.

    tooltip

    Gets the contents of the tooltip to display for this menu action.

    Declaration
    public override TooltipContent tooltip { get; }
    Property Value
    Type Description
    TooltipContent
    Overrides
    MenuAction.tooltip

    validSelectModes

    Gets the SelectMode states where this action applies. This drives the hidden property unless you override it.

    Declaration
    public override SelectMode validSelectModes { get; }
    Property Value
    Type Description
    SelectMode
    Overrides
    MenuAction.validSelectModes

    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()
    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