viewport property
Coordinates of the event relative to the game position/size but applying only viewport transformations (not camera).
Implementation
late final Vector2 viewport = _game.viewportProjector.unprojectVector(widget);
Coordinates of the event relative to the game position/size but applying only viewport transformations (not camera).
late final Vector2 viewport = _game.viewportProjector.unprojectVector(widget);