SpatialText constructor

SpatialText({
  1. String name = 'text',
  2. required CameraRig cameraRig,
  3. required String text,
  4. double fontSize = 24,
  5. Color color = const Color(0xFFFFFFFF),
  6. FontWeight fontWeight = FontWeight.w400,
  7. TextAlign textAlign = TextAlign.center,
  8. bool lockY = true,
})

Implementation

SpatialText({
  super.name = 'text',
  required super.cameraRig,
  required this.text,
  this.fontSize = 24,
  this.color = const Color(0xFFFFFFFF),
  this.fontWeight = FontWeight.w400,
  this.textAlign = TextAlign.center,
  super.lockY = true,
});