高通vuforia动态加载、卸载、对焦、翻转摄像头、控制识别数模板

我目前用的是高通6117版本的SDK,最新版函数改动不多,大体上一致,话不多说上代码

using UnityEngine;
using System.Collections;
using Vuforia;
using System.Collections.Generic;
using System.IO;
using UnityEngine.UI;

public class Vuforia_Template : MonoBehaviour
{
    private string sz_DataPath = null;
    private bool b_LoadDataSet = false;

    private ObjectTracker m_ObjectTracker = null;
    private DataSet m_DataSet = null;
    private ImageTargetBehaviour[] m_ImageTargetBehaviours = null;
    private static Vuforia_Template _insttance = null;

    /// <summary>
    /// 是否为使用本地识别库数据
    /// </summary>
    [Header("是否为使用本地识别库数据")]
    public bool b_Location = false;

    public static Vuforia_Template Instance
    {
        get { return _insttance; }
    }
    public string GetDataPath
    {
        get { return sz_DataPath; }
        set { sz_DataPath = value; }
    }

    private void Awake()
    {
        _insttance = this;
    }
    void Start()
    {
        //string path = Application.isEditor ? Application.persistentDataPath.Replace("/" + Application.productName, "") : Application.persistentDataPath;
        //GetDataPath = path + "/" + "Capable" + ".xml";
        Vufor
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值