Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


agentRadius

The radius of the agent for baking in world units.
Read time 1 minuteLast updated 10 days ago

Definition

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

Remarks

The resulting NavMesh will be shrunk by this radius to make sure that agents do not clip to walls when close to obstacles, in some scenarios it can be useful to reduce this radius.