Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


updateUpAxis

Allows you to specify whether the agent should be aligned to the up-axis of the NavMesh or link that it is placed on.
Read time 1 minuteLast updated 10 days ago

Definition

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

Remarks

When this value is set to true, the agent will always be aligned to the local up-axis of the NavMesh or link that it is currently on. When set to false, the agent’s orientation is unaffected by the orientation of the NavMesh.