Skip to content

format

typescript
NavMeshAgent.avoidancePriority

class: NavMeshAgent

description

The priority of the agent's obstacle avoidance.

A smaller value represents a more "reckless" behavior, while a higher value represents a more "courteous" behavior. The valid range of values is from 1 to 99 (inclusive). Any value passed to the setter will be truncated to an integer between 1 and 99.

parameter

param_nametypedescription

reture

typedescription
numberThe priority of the agent's obstacle avoidance.

code example