Skip to main content

arPriority

Typestring[]
Default["webAR", "sceneViewer", "quickLook"]

Priority array for the AR sessions.
If the two sessions are available in one environment, the session listed earlier will be used first.
If the session name is not included in this priority array, that session will be ignored.
See AR_SESSION_TYPE

Example

{
src: "/egjs-view3d/model/draco/alarm.glb",
iosSrc: "/egjs-view3d/model/usdz/alarm.usdz",
arPriority: [
"webAR",
"sceneViewer",
"quickLook"
]
}
{
src: "/egjs-view3d/model/draco/alarm.glb",
iosSrc: "/egjs-view3d/model/usdz/alarm.usdz",
arPriority: [
"sceneViewer",
"webAR",
"quickLook"
]
}
{
src: "/egjs-view3d/model/draco/alarm.glb",
iosSrc: "/egjs-view3d/model/usdz/alarm.usdz",
arPriority: [
"quickLook",
"webAR",
"sceneViewer"
]
}