Table of Contents

Interface EasyARWechatMiniprogramPlugin

Namespace
easyar

After depending on the WeChat Mini Program plugin, the method that can be directly called by obtaining the plugin object via requirePlugin("easyar-wechat-miniprogram").

Properties

createXRNodeFromNodeAnnotation

Create XRNode in the XRFrame scene based on Node type annotations.

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

getMegaSystem

Obtain the easyar-mega interface system.

getMegaSystem: () => IMegaSystem;

isMegaTrackerSupported

isMegaTrackerSupported: Whether MegaTracker is available in the current runtime environment (device model, operating system). It is available when WeChat VK v1 or v2 is supported. For the device model list, refer to <https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/visionkit/plane.html>

isMegaTrackerSupported: () => boolean;

toXRFrame

Transform Ema to the XRFrame coordinate system.

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