CreateFields(SerializedProperty)
Create the editable fields for a PolygonGeometry property, with no wrapping foldout.
Read time 1 minuteLast updated 4 hours ago
Definition
- Type: Method
- Namespace: Unity.U2D.Physics.Editor
- Assembly: UnityEditor
public static VisualElement CreateFields(SerializedProperty property)
Parameters
The serialized PolygonGeometry property to build the fields for.
Returns
Type | Description |
|---|---|
| VisualElement | A container with the polygon fields; the derived normals and centroid are shown read-only. |