position property

  1. @override
Vector2 get position
override

Position of the viewport's anchor in the parent's coordinate frame.

Changing this position will move the viewport around the screen, but will not affect which portion of the game world is visible. Thus, the game world will appear as a static picture inside the viewport.

Implementation

@override
Vector2 get position => _position;
  1. @override
set position (Vector2 value)
override

Implementation

@override
set position(Vector2 value) => _position.setFrom(value);