Table of Contents

Interface EasyARWechatMiniprogramPlugin

Spazio dei nomi
easyar

Metodi che possono essere chiamati direttamente sull’oggetto plugin ottenuto tramite requirePlugin("easyar-wechat-miniprogram") dopo aver aggiunto la dipendenza dal plugin Mini Program WeChat.

Proprietà

createXRNodeFromNodeAnnotation

Crea un XRNode nella scena XRFrame in base all’annotazione del tipo Node.

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

getMegaSystem

Ottiene il sistema di interfaccia easyar-mega

getMegaSystem: () => IMegaSystem;

isMegaTrackerSupported

isMegaTrackerSupported Indica se MegaTracker è disponibile nell’ambiente di runtime corrente (modello del dispositivo, sistema operativo). È disponibile quando WeChat VK v1 o v2 è supportato. Per l’elenco dei modelli, vedere <https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/visionkit/plane.html>

isMegaTrackerSupported: () => boolean;

toXRFrame

Trasforma Ema nel sistema di coordinate XRFrame.

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