updateViewport method
dynamic
updateViewport(
- dynamic x,
- dynamic y
Implementation
updateViewport(x, y) {
camera.viewport.size = Vector2(x, y);
}
updateViewport(x, y) {
camera.viewport.size = Vector2(x, y);
}