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