Class ProBuilderEditor
Manages the ProBuilder toolbar and tool mode.
Implements
Inherited Members
Namespace: UnityEditor.ProBuilder
Assembly: Unity.ProBuilder.Editor.dll
Syntax
public sealed class ProBuilderEditor : EditorWindow, IHasCustomMenu
Properties
Name | Description |
---|---|
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. |
selectMode | Gets and sets the current SelectMode value. |
Methods
Name | Description |
---|---|
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. |
Refresh(bool) | Rebuilds the mesh wireframe and selection caches. |
ResetToLastSelectMode() | Changes the SelectMode to the last used mesh element mode. |
Events
Name | Description |
---|---|
afterMeshModification | Raised when vertex modifications are complete. |
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). |
selectModeChanged | Raised when the EditLevel changes. |
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. |