docs.unity3d.com
    Show / Hide Table of Contents

    Class ProBuilderEditor

    Manages the ProBuilder toolbar window and tool mode.

    Inheritance
    Object
    Object
    ScriptableObject
    EditorWindow
    ProBuilderEditor
    Inherited Members
    EditorWindow.BeginWindows()
    EditorWindow.EndWindows()
    EditorWindow.ShowNotification(GUIContent)
    EditorWindow.ShowNotification(GUIContent, Double)
    EditorWindow.RemoveNotification()
    UnityEditor.EditorWindow.ShowTab()
    EditorWindow.Focus()
    EditorWindow.ShowUtility()
    EditorWindow.ShowPopup()
    EditorWindow.ShowModalUtility()
    EditorWindow.ShowAsDropDown(Rect, Vector2)
    EditorWindow.Show()
    EditorWindow.Show(Boolean)
    EditorWindow.ShowAuxWindow()
    EditorWindow.ShowModal()
    EditorWindow.GetWindow(Type, Boolean, String, Boolean)
    EditorWindow.GetWindow(Type, Boolean, String)
    EditorWindow.GetWindow(Type, Boolean)
    EditorWindow.GetWindow(Type)
    EditorWindow.GetWindowWithRect(Type, Rect, Boolean, String)
    EditorWindow.GetWindowWithRect(Type, Rect, Boolean)
    EditorWindow.GetWindowWithRect(Type, Rect)
    UnityEditor.EditorWindow.GetWindow<T>()
    UnityEditor.EditorWindow.GetWindow<T>(System.Boolean)
    UnityEditor.EditorWindow.GetWindow<T>(System.Boolean, System.String)
    UnityEditor.EditorWindow.GetWindow<T>(System.String)
    UnityEditor.EditorWindow.GetWindow<T>(System.String, System.Boolean)
    UnityEditor.EditorWindow.GetWindow<T>(System.Boolean, System.String, System.Boolean)
    UnityEditor.EditorWindow.GetWindow<T>(System.Type[])
    UnityEditor.EditorWindow.GetWindow<T>(System.String, System.Type[])
    UnityEditor.EditorWindow.GetWindow<T>(System.String, System.Boolean, System.Type[])
    UnityEditor.EditorWindow.CreateWindow<T>(System.Type[])
    UnityEditor.EditorWindow.CreateWindow<T>(System.String, System.Type[])
    UnityEditor.EditorWindow.HasOpenInstances<T>()
    EditorWindow.FocusWindowIfItsOpen(Type)
    UnityEditor.EditorWindow.FocusWindowIfItsOpen<T>()
    UnityEditor.EditorWindow.GetWindowWithRect<T>(UnityEngine.Rect)
    UnityEditor.EditorWindow.GetWindowWithRect<T>(UnityEngine.Rect, System.Boolean)
    UnityEditor.EditorWindow.GetWindowWithRect<T>(UnityEngine.Rect, System.Boolean, System.String)
    UnityEditor.EditorWindow.GetWindowWithRect<T>(UnityEngine.Rect, System.Boolean, System.String, System.Boolean)
    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.title
    EditorWindow.titleContent
    UnityEditor.EditorWindow.depthBufferBits
    UnityEditor.EditorWindow.antiAlias
    EditorWindow.position
    ScriptableObject.SetDirty()
    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, Boolean)
    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, Boolean)
    Object.Destroy(Object, Single)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, Boolean)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, Single)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectOfType<T>()
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.ToString()
    Object.name
    Object.hideFlags
    Namespace: UnityEditor.ProBuilder
    Syntax
    public sealed class ProBuilderEditor : EditorWindow, IHasCustomMenu

    Properties

    instance

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

    Get the active ProBuilderEditor window. Null if no instance is open.

    selectMode

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

    Get and set the current SelectMode.

    Methods

    AddItemsToMenu(GenericMenu)

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

    Refresh(Boolean)

    Rebuild the mesh wireframe and selection caches.

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

    ResetToLastSelectMode()

    Set the SelectMode to the last used mesh element mode.

    Declaration
    public static void ResetToLastSelectMode()

    Events

    afterMeshModification

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

    Called when vertex modifications are complete.

    beforeMeshModification

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

    Called immediately prior to beginning vertex modifications. The ProBuilderMesh will be in un-altered state at this point (meaning ProBuilderMesh.ToMesh and ProBuilderMesh.Refresh have been called, but not Optimize).

    selectionUpdated

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

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

    selectModeChanged

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

    Raised when the EditLevel is changed.

    Back to top
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)