docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CutToolAction

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

    Inheritance
    object
    MenuAction
    CutToolAction
    Inherited Members
    MenuAction.onPerformAction
    MenuAction.toolbarPriority
    MenuAction.menuTitle
    MenuAction.menuActionState
    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.Actions
    Assembly: Unity.ProBuilder.Editor.dll
    Syntax
    public class CutToolAction : MenuAction

    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
    bool
    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
    bool
    Overrides
    MenuAction.hasFileMenuEntry

    icon

    Gets the icon to display in the Context Menu for this action.

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

    iconPath

    Gets the local path of the icon to display in the Context Menu for this action.

    Declaration
    public override string iconPath { get; }
    Property Value
    Type Description
    string
    Overrides
    MenuAction.iconPath

    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()
    In This Article
    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)