---
title: CreateFields(SerializedProperty)
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/u2d/physics/editor/polygongeometryinspector/createfields
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/u2d/physics/editor/polygongeometryinspector/createfields.md
last_updated: 2026-11-30
generated_at: 2026-11-30T21:17:11.243Z
locale: en-us
---

# CreateFields(SerializedProperty)

> Create the editable fields for a PolygonGeometry property, with no wrapping foldout.

## Definition

* **Type:** Method
* **Namespace:** [Unity.U2D.Physics.Editor](/engine/7000.0/script-reference/unity/u2d/physics/editor.md)
* **Assembly:** [UnityEditor](/engine/7000.0/script-reference/modules/unityeditor.md)

```csharp
public static VisualElement CreateFields(SerializedProperty property)
```

### Parameters

**** (\[SerializedProperty]\(/engine/7000.0/script-reference/unityeditor/serializedproperty)): The serialized [PolygonGeometry](/engine/7000.0/script-reference/unity/u2d/physics/polygongeometry.md) property to build the fields for.

### Returns

| Type                                                                                     | Description                                                                                |
| ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |
| [VisualElement](/engine/7000.0/script-reference/unityengine/uielements/visualelement.md) | A container with the polygon fields; the derived normals and centroid are shown read-only. |
