---
title: PolygonGeometryInspector
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
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/u2d/physics/editor/polygongeometryinspector.md
last_updated: 2026-11-30
generated_at: 2026-11-30T21:22:04.583Z
locale: en-us
---

# 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.

## Definition

* **Type:** Class
* **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 class PolygonGeometryInspector
```

## Static Methods

| Method                                                                                                            | Description                                                                                                                                                  |
| ----------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [CreateFields](/engine/7000.0/script-reference/unity/u2d/physics/editor/polygongeometryinspector/createfields.md) | Create the editable fields for a [PolygonGeometry](/engine/7000.0/script-reference/unity/u2d/physics/polygongeometry.md) property, with no wrapping foldout. |
