size property

Vector2 get size

Current game viewport size, updated every resize via the onGameResize method hook.

Implementation

Vector2 get size {
  assertHasLayout();
  return _size!;
}