我正在尝试使用this tutorial中概述的nativescript-ar
插件,但是我使用的是Vue而不是Angular。无论出于什么原因,我都无法渲染AR模块视图。
这些是我尝试导入组件的一些方法:
import {
AR,
ARLoadedEventData,
ARNodeInteraction,
ARPlaneTappedEventData
} from "nativescript-ar";
import { Color } from "tns-core-modules/color";
export default {
components: {
// AR: () => require("nativescript-ar").AR
// AR: () => import("nativescript-ar").AR
AR
},
我还在使用tns preview
而不是tns run ios
测试应用程序-这本身就是问题吗?我觉得到目前为止,我都尝试过各种“黑客”组合,但都无济于事...