Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


agentSlope

The maximum slope angle which is walkable (angle in degrees).
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine.AI
  • Assembly: UnityEngine.AIModule
public float agentSlope { get; set; }

Remarks

The valid range is 0–60 degrees. Steep slopes will be excluded from the resulting NavMesh. Please note that setting the slope higher than 45 can give artifacts due to the voxelization process - i.e. a steep slope cannot be distinguished from a wall.