Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

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

NavMeshAgent.Warp

Switch to Manual
public function Warp(newPosition: Vector3): bool;

Parameters

newPosition New position to warp the agent to.

Description

Warps agent to the provided position.

Returns true if successful, otherwise returns false.