viewportPositionToGlobal method

  1. @override
Vector2 viewportPositionToGlobal(
  1. Vector2 position
)
override

This method convert viewport position to screen position

Implementation

@override
Vector2 viewportPositionToGlobal(Vector2 position) {
  return camera.viewport.localToGlobal(position);
}