updateViewport method

dynamic updateViewport(
  1. dynamic x,
  2. dynamic y
)

Implementation

updateViewport(x, y) {
  camera.viewport.size = Vector2(x, y);
}