Character Controller teleportation#

To teleport a Character Controller it must be disabled.


// Disable the CharacterController.
_characterController.enabled = false;
// Move it.
_characterController.transform.position = _target.position;
// Re-enable it.
_characterController.enabled = true;

If you were previously referencing a Transform, reference the CharacterController instead so you can toggle enabled.

If you still have issues teleporting, call Physics.SyncTransforms after teleportation to apply transform changes.