snapTo method

void snapTo(
  1. Vector2 position
)
inherited

Instantly moves the camera to the target, bypassing follow. This will replace any previous targets.

Implementation

void snapTo(Vector2 position) {
  moveTo(position);
  snap();
}