UArConfig.viewer constructor
const
UArConfig.viewer({})
A plain 3D model viewer: no camera, no permission, works everywhere.
Implementation
const UArConfig.viewer({
this.background = const Color(0xFFF2F2F2),
this.transparentBackground = false,
this.shadows = true,
this.shadowOpacity = 0.35,
this.exposure = 1,
this.environmentIntensity = 1,
this.orbit = const UArOrbit(),
this.eventRate = 30,
}) : mode = UArMode.viewer,
camera = UArCameraFacing.back,
planeDetection = UArPlaneDetection.none,
planeStyle = UArPlaneStyle.hidden,
planeColor = const Color(0x00000000),
showFeaturePoints = false,
showWorldOrigin = false,
showAnchors = false,
showSceneMesh = false,
occlusion = false,
peopleOcclusion = false,
sceneReconstruction = UArSceneReconstruction.none,
lightEstimation = UArLightEstimation.disabled,
focusMode = UArFocusMode.auto,
instantPlacement = false,
reticle = false,
reticleColor = const Color(0x00000000),
coaching = false,
coachingGoal = UArCoachingGoal.tracking,
images = const <UArReferenceImage>[],
maxTrackedImages = 0,
objects = const <UArReferenceObject>[],
geoMode = UArGeoMode.auto,
cloudAnchors = false,
semantics = false,
showFaceMesh = false,
faceMeshColor = const Color(0x00000000),
collaboration = false,
worldMap = null,
worldAlignment = UArWorldAlignment.gravity,
highFps = false;