Inheritance
PolyShapeTool
[EditorTool("Edit PolyShape", typeof(PolyShape))]
public class PolyShapeTool : EditorTool
Properties
Declaration
public PolyShape polygon { get; set; }
Property Value
Declaration
public override GUIContent toolbarIcon { get; }
Property Value
Overrides
Methods
Main GUI update for the tool, calls every secondary methods to place points, update lines and compute the cut
Declaration
public override void OnToolGUI(EditorWindow window)
Parameters
Type |
Name |
Description |
EditorWindow |
window |
current window calling the tool : SceneView
|
Overrides
Declaration
public void RebuildPolyShapeMesh(bool vertexCountChanged = false)
Parameters
Type |
Name |
Description |
Boolean |
vertexCountChanged |
|