# Validate()

> Get a validated version of the geometry, if possible.

## Definition

* **Type:** Method
* **Namespace:** [Unity.U2D.Physics](/engine/6000.6/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule

```csharp
public readonly PolygonGeometry Validate()
```

### Returns

| Type                                                                                    | Description                                                                                                                                                                                                                                    |
| --------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [PolygonGeometry](/engine/6000.6/script-reference/unity/u2d/physics/polygongeometry.md) | A validated copy of the geometry with updated normals, centroid etc. Depending on the current geometry, the returned geometry may not be valid. See [\_isValid](/engine/6000.6/script-reference/unity/u2d/physics/polygongeometry/isvalid.md). |
