docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ProBuilderEditor

    Manages the ProBuilder toolbar and tool mode.

    Inheritance
    object
    Object
    ScriptableObject
    EditorWindow
    ProBuilderEditor
    Implements
    IHasCustomMenu
    Inherited Members
    EditorWindow.BeginWindows()
    EditorWindow.EndWindows()
    EditorWindow.ShowNotification(GUIContent)
    EditorWindow.ShowNotification(GUIContent, double)
    EditorWindow.RemoveNotification()
    EditorWindow.ShowTab()
    EditorWindow.Focus()
    EditorWindow.ShowUtility()
    EditorWindow.ShowPopup()
    EditorWindow.ShowModalUtility()
    EditorWindow.ShowAsDropDown(Rect, Vector2)
    EditorWindow.Show()
    EditorWindow.Show(bool)
    EditorWindow.ShowAuxWindow()
    EditorWindow.ShowModal()
    EditorWindow.GetWindow(Type, bool, string, bool)
    EditorWindow.GetWindow(Type, bool, string)
    EditorWindow.GetWindow(Type, bool)
    EditorWindow.GetWindow(Type)
    EditorWindow.GetWindowWithRect(Type, Rect, bool, string)
    EditorWindow.GetWindowWithRect(Type, Rect, bool)
    EditorWindow.GetWindowWithRect(Type, Rect)
    EditorWindow.GetWindow<T>()
    EditorWindow.GetWindow<T>(bool)
    EditorWindow.GetWindow<T>(bool, string)
    EditorWindow.GetWindow<T>(string)
    EditorWindow.GetWindow<T>(string, bool)
    EditorWindow.GetWindow<T>(bool, string, bool)
    EditorWindow.GetWindow<T>(params Type[])
    EditorWindow.GetWindow<T>(string, params Type[])
    EditorWindow.GetWindow<T>(string, bool, params Type[])
    EditorWindow.CreateWindow<T>(params Type[])
    EditorWindow.CreateWindow<T>(string, params Type[])
    EditorWindow.HasOpenInstances<T>()
    EditorWindow.FocusWindowIfItsOpen(Type)
    EditorWindow.FocusWindowIfItsOpen<T>()
    EditorWindow.GetWindowWithRect<T>(Rect)
    EditorWindow.GetWindowWithRect<T>(Rect, bool)
    EditorWindow.GetWindowWithRect<T>(Rect, bool, string)
    EditorWindow.GetWindowWithRect<T>(Rect, bool, string, bool)
    EditorWindow.Close()
    EditorWindow.Repaint()
    EditorWindow.SendEvent(Event)
    EditorWindow.GetExtraPaneTypes()
    EditorWindow.rootVisualElement
    EditorWindow.wantsMouseMove
    EditorWindow.wantsMouseEnterLeaveWindow
    EditorWindow.autoRepaintOnSceneChange
    EditorWindow.maximized
    EditorWindow.focusedWindow
    EditorWindow.mouseOverWindow
    EditorWindow.minSize
    EditorWindow.maxSize
    EditorWindow.titleContent
    EditorWindow.depthBufferBits
    EditorWindow.position
    ScriptableObject.CreateInstance(string)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.DontDestroyOnLoad(Object)
    Object.FindObjectsOfType<T>()
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType(Type)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEditor.ProBuilder
    Assembly: Unity.ProBuilder.Editor.dll
    Syntax
    public sealed class ProBuilderEditor : EditorWindow, IHasCustomMenu

    Properties

    instance

    Gets the active ProBuilderEditor window, or null if no instance is open. The ProBuilderEditor window appears in the Unity Editor as both the Edit Mode toolbar and the ProBuilder toolbar working together.

    Declaration
    public static ProBuilderEditor instance { get; }
    Property Value
    Type Description
    ProBuilderEditor

    selectMode

    Gets and sets the current SelectMode value.

    Declaration
    public static SelectMode selectMode { get; set; }
    Property Value
    Type Description
    SelectMode

    Methods

    AddItemsToMenu(GenericMenu)

    Builds the context menu for the ProBuilder toolbar. This menu allows the user to toggle between text and button mode, and to change whether the toolbar is floating or dockable.

    Declaration
    public void AddItemsToMenu(GenericMenu menu)
    Parameters
    Type Name Description
    GenericMenu menu

    The context menu

    Refresh(bool)

    Rebuilds the mesh wireframe and selection caches.

    Declaration
    public static void Refresh(bool vertexCountChanged = true)
    Parameters
    Type Name Description
    bool vertexCountChanged

    True if the number of vertices changed, which is the default value.

    ResetToLastSelectMode()

    Changes the SelectMode to the last used mesh element mode.

    Declaration
    public static void ResetToLastSelectMode()

    Events

    afterMeshModification

    Raised when vertex modifications are complete.

    Declaration
    public static event Action<IEnumerable<ProBuilderMesh>> afterMeshModification
    Event Type
    Type Description
    Action<IEnumerable<ProBuilderMesh>>

    beforeMeshModification

    Raised immediately prior to beginning vertex modifications, when the ProBuilderMesh is in un-altered state. This is after ToMesh(MeshTopology) and Refresh(RefreshMask) have been called, but before Optimize(ProBuilderMesh, bool).

    Declaration
    public static event Action<IEnumerable<ProBuilderMesh>> beforeMeshModification
    Event Type
    Type Description
    Action<IEnumerable<ProBuilderMesh>>

    selectModeChanged

    Raised when the EditLevel changes.

    Declaration
    public static event Action<SelectMode> selectModeChanged
    Event Type
    Type Description
    Action<SelectMode>

    selectionUpdated

    Raised any time the ProBuilder editor refreshes the selection. This is called every frame when interacting with mesh elements, and after any mesh operation.

    Declaration
    public static event Action<IEnumerable<ProBuilderMesh>> selectionUpdated
    Event Type
    Type Description
    Action<IEnumerable<ProBuilderMesh>>

    Implements

    IHasCustomMenu
    In This Article
    Back to top
    Copyright © 2025 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)