ViewHelper2 constructor
ViewHelper2({
- required Camera camera,
- required GlobalKey<
PeripheralsState> listenableKey, - required Size screenSize,
- Vector2? offset,
- OffsetType offsetType = OffsetType.bottomLeft,
Implementation
ViewHelper2({
required this.camera,
required this.listenableKey,
required this.screenSize,
Vector2? offset,
this.offsetType = OffsetType.bottomLeft,
}):super(){
_offset = offset ?? Vector2();
_calculatePosition();
orthoCamera.position.setValues( 0, 0, 2 );
createBox();
_activate();
addLight();
}