Class PolyShapeTool
Represents the PolyShape tool button on the ProBuilder toolbar in the Editor.
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEditor.ProBuilder
Assembly: Unity.ProBuilder.Editor.dll
Syntax
[EditorTool("Edit PolyShape", typeof(PolyShape))]
public class PolyShapeTool : EditorTool
Properties
Name | Description |
---|---|
polygon | Gets or sets the custom polygon shape. |
toolbarIcon | Gets the icon and tooltip for the PolyShapeTool. |
Methods
Name | Description |
---|---|
OnActivated() | |
OnToolGUI(EditorWindow) | Implements the PolyShapeTool in the Unity Editor. This method is called when the PolyShapeTool is activated. |
OnWillBeDeactivated() | |
RebuildPolyShapeMesh(bool) | Redraws the PolyShape mesh in the Unity Editor. |