shape
The shape of the obstacle.
阅读时间1 分钟最后更新于 25 天前
Definition
- Type: Property
- Namespace: UnityEngine.AI
- Assembly: UnityEngine.AIModule
public NavMeshObstacleShape shape { get; set; }
Remarks
Set or get the shape of the NavMeshObstacle.
A newly created NavMeshObstacle has a shape of the NavMeshObstacleShape.Box shape. The obstacle shapes are listed in NavMeshObstacleShape.
Note: When the shape is changed the NavMeshObstacle.center is set back to zero.