Table of Contents

Interface IEasyARMegaData

命名空间
easyar

IEasyARMegaData EasyARMegaComponent 上挂载的数据。

属性

arTrackerId

xrframe场景中的XRARTracker ID, easyar将先调用getElementById检索XRARTracker,例如,此时传入"xrARTracker"。 若EasyARSession创建时未能通过ID找到XRARTracker,EasyARSession会尝试通过XRARTracker类型在场景中查找。 XRARTracker的定义请见 <https://developers.weixin.qq.com/miniprogram/dev/api/xr-frame/classes/XRARTracker.html> 。

arTrackerId: string;

cameraId

xrframe场景中的XR相机ID, easyar将先调用getElementById检索XR相机,例如,此时传入"xrCamera"。 若EasyARSession创建时未能通过ID找到XR相机,EasyARSession会尝试通过XRCamera类型在场景中查找。 XRCamera的定义请见 <https://developers.weixin.qq.com/miniprogram/dev/api/xr-frame/classes/XRCamera.html> 。

cameraId: string;