UArConfig constructor

const UArConfig({
  1. UArMode mode = UArMode.world,
  2. UArCameraFacing camera = UArCameraFacing.back,
  3. UArPlaneDetection planeDetection = UArPlaneDetection.both,
  4. UArPlaneStyle planeStyle = UArPlaneStyle.grid,
  5. Color planeColor = const Color(0x80FFFFFF),
  6. bool showFeaturePoints = false,
  7. bool showWorldOrigin = false,
  8. bool showAnchors = false,
  9. bool showSceneMesh = false,
  10. bool occlusion = true,
  11. bool peopleOcclusion = true,
  12. UArSceneReconstruction sceneReconstruction = UArSceneReconstruction.none,
  13. UArLightEstimation lightEstimation = UArLightEstimation.environmentalHdr,
  14. UArFocusMode focusMode = UArFocusMode.auto,
  15. bool instantPlacement = true,
  16. bool reticle = false,
  17. Color reticleColor = const Color(0xFFFFFFFF),
  18. bool coaching = true,
  19. UArCoachingGoal coachingGoal = UArCoachingGoal.anyPlane,
  20. List<UArReferenceImage> images = const <UArReferenceImage>[],
  21. int maxTrackedImages = 4,
  22. List<UArReferenceObject> objects = const <UArReferenceObject>[],
  23. UArGeoMode geoMode = UArGeoMode.auto,
  24. bool cloudAnchors = false,
  25. bool semantics = false,
  26. bool showFaceMesh = false,
  27. Color faceMeshColor = const Color(0x55FFFFFF),
  28. bool collaboration = false,
  29. Uint8List? worldMap,
  30. UArWorldAlignment worldAlignment = UArWorldAlignment.gravity,
  31. bool shadows = true,
  32. double shadowOpacity = 0.45,
  33. double exposure = 1,
  34. double environmentIntensity = 1,
  35. Color background = const Color(0xFFF2F2F2),
  36. bool transparentBackground = false,
  37. UArOrbit orbit = const UArOrbit(),
  38. int eventRate = 30,
  39. bool highFps = false,
})

Implementation

const UArConfig({
  this.mode = UArMode.world,
  this.camera = UArCameraFacing.back,
  this.planeDetection = UArPlaneDetection.both,
  this.planeStyle = UArPlaneStyle.grid,
  this.planeColor = const Color(0x80FFFFFF),
  this.showFeaturePoints = false,
  this.showWorldOrigin = false,
  this.showAnchors = false,
  this.showSceneMesh = false,
  this.occlusion = true,
  this.peopleOcclusion = true,
  this.sceneReconstruction = UArSceneReconstruction.none,
  this.lightEstimation = UArLightEstimation.environmentalHdr,
  this.focusMode = UArFocusMode.auto,
  this.instantPlacement = true,
  this.reticle = false,
  this.reticleColor = const Color(0xFFFFFFFF),
  this.coaching = true,
  this.coachingGoal = UArCoachingGoal.anyPlane,
  this.images = const <UArReferenceImage>[],
  this.maxTrackedImages = 4,
  this.objects = const <UArReferenceObject>[],
  this.geoMode = UArGeoMode.auto,
  this.cloudAnchors = false,
  this.semantics = false,
  this.showFaceMesh = false,
  this.faceMeshColor = const Color(0x55FFFFFF),
  this.collaboration = false,
  this.worldMap,
  this.worldAlignment = UArWorldAlignment.gravity,
  this.shadows = true,
  this.shadowOpacity = 0.45,
  this.exposure = 1,
  this.environmentIntensity = 1,
  this.background = const Color(0xFFF2F2F2),
  this.transparentBackground = false,
  this.orbit = const UArOrbit(),
  this.eventRate = 30,
  this.highFps = false,
});