Interface EasyARWechatMiniprogramPlugin
- Namespace
- easyar
Methods that can be directly called by obtaining the plugin object through requirePlugin("easyar-wechat-miniprogram") after relying on the WeChat mini-program plugin in EasyARWechatMiniprogramPlugin.
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;
Property Value
getMegaSystem
Obtain the easyar-mega interface system
getMegaSystem: () => IMegaSystem;
Property Value
isMegaTrackerSupported
Whether MegaTracker is available in the current running environment (model, operating system). It is available when WeChat VK v1 or v2 supports it. For the model list, refer to <https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/visionkit/plane.html>
isMegaTrackerSupported: () => boolean;
Property Value
toXRFrame
Transform Ema to the XRFrame coordinate system.
toXRFrame: (emaTransform: ema.Transform) => LocalTransform;