Table of Contents

Interface EasyARWechatMiniprogramPlugin

Spazio dei nomi
easyar

Dopo aver fatto affidamento sul plugin WeChat Mini Program, ottenere l'oggetto del plugin tramite requirePlugin("easyar-wechat-miniprogram") per chiamare direttamente i metodi.

Proprietà

createXRNodeFromNodeAnnotation

Creare un XRNode nella scena XRFrame basandosi sull'annotazione del tipo Node.

createXRNodeFromNodeAnnotation: (nodeAnnotation: ema.v0_5.Node, blockHolder: BlockHolder) => xrfs.XRNode;

getMegaSystem

Ottenere il sistema di interfaccia easyar-mega.

getMegaSystem: () => IMegaSystem;

isMegaTrackerSupported

isMegaTrackerSupported Se MegaTracker è disponibile nell'ambiente di runtime corrente (modello dispositivo, sistema operativo). È disponibile quando WeChat VK v1 o v2 è supportato. Fare riferimento all'elenco dei dispositivi su <https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/visionkit/plane.html>

isMegaTrackerSupported: () => boolean;

toXRFrame

Trasformare Ema nel sistema di coordinate XRFrame.

toXRFrame: (emaTransform: ema.Transform) => LocalTransform;