Skip to content

format

typescript
NavMeshAgent.baseOffset

class: NavMeshAgent

description

The offset of the agent relative to the bound GameObject in the y-axis direction.

During runtime, the engine will ensure that the bottom of the cylinder representing the agent is at the same height as the navigation mesh. This parameter can be adjusted to change the height of the bound GameObject from the ground.

parameter

param_nametypedescription

reture

typedescription
numberThe offset of the agent relative to the bound GameObject in the y-axis direction.

code example