Interface EasyARWechatMiniprogramPlugin
- Namespace
- easyar
Methods that can be called directly on the plugin object obtained through requirePlugin("easyar-wechat-miniprogram") after depending on the WeChat Mini Program plugin.
Properties
createXRNodeFromNodeAnnotation
Create an XRNode in the XRFrame scene according to the Node type annotation.
createXRNodeFromNodeAnnotation: (nodeAnnotation: ema.v0_5.Node, blockHolder: BlockHolder) => xrfs.XRNode;
getMegaSystem
Get 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 list, see <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;