onGameResize method
It receives the new game size. Executed right after the component is attached to a game and right before onLoad is called.
Implementation
@override
void onGameResize(Vector2 size) {
for (final child in children) {
child.onGameResize(size);
}
super.onGameResize(size);
}