positionType property

  1. @override
PositionType get positionType
override

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;
set positionType (PositionType _positionType)
inherited

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;