onGameResize method

  1. @override
void onGameResize(
  1. Vector2 size
)
override

Called whenever the size of the top-level Canvas changes.

In addition, this method will be invoked before each onMount.

Implementation

@override
void onGameResize(Vector2 size) {
  super.onGameResize(size);
  this.size = size;
  if (_hasWorldAncestor) {
    _updateTransform();
  }
}