PolygonGeometryInspector
Builds the UI Toolkit fields for a PolygonGeometry serialized property. The computed normals and centroid are shown read-only because they are derived from the vertices. Add the returned element directly to embed the fields inline, or wrap it in a Foldout for a collapsible section.
Read time 1 minuteLast updated 3 hours ago
Definition
- Type: Class
- Namespace: Unity.U2D.Physics.Editor
- Assembly: UnityEditor
public static class PolygonGeometryInspector
Static Methods
Method | Description |
|---|---|
| CreateFields | Create the editable fields for a PolygonGeometry property, with no wrapping foldout. |