Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


avoidancePriority

The avoidance priority level.
Read time 1 minuteLast updated 6 days ago

Definition

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

Remarks

When the agent is performing avoidance, agents of lower priority are ignored. The valid range is from 0 to 99 where: Most important = 0. Least important = 99. Default = 50.