positionType property
What coordinate system this component should respect (i.e. should it observe camera, viewport, or use the raw canvas).
Do note that this currently only works if the component is added directly
to the root FlameGame
.
Implementation
@override
PositionType get positionType => PositionType.viewport;
What coordinate system this component should respect (i.e. should it observe camera, viewport, or use the raw canvas).
Do note that this currently only works if the component is added directly
to the root FlameGame
.
Implementation
PositionType positionType = PositionType.game;