# shape

> The shape of the obstacle.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.AI](/engine/6000.5/script-reference/unityengine/ai.md)
* **Assembly:** UnityEngine.AIModule

```csharp
public NavMeshObstacleShape shape { get; set; }
```

### Remarks

Set or get the shape of the [NavMeshObstacle](/engine/6000.5/script-reference/unityengine/ai/navmeshobstacle.md).

A newly created [NavMeshObstacle](/engine/6000.5/script-reference/unityengine/ai/navmeshobstacle.md) has a shape of the [NavMeshObstacleShape.Box](/engine/6000.5/script-reference/unityengine/ai/navmeshobstacleshape/box.md) shape. The obstacle shapes are listed in [NavMeshObstacleShape](/engine/6000.5/script-reference/unityengine/ai/navmeshobstacleshape.md).

**Note:** When the shape is changed the [\_center](/engine/6000.5/script-reference/unityengine/ai/navmeshobstacle/center.md) is set back to zero.
