Legacy Documentation: Version 2017.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

NavMeshAgent.updateUpAxis

public bool updateUpAxis;

Description

Allows you to specify whether the agent should be aligned to the up-axis of the NavMesh or link that it is placed on.

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.

Did you find this page useful? Please give it a rating: