ObjectTracker NullReferenceException vuforia Dataset
I'm trying to add Dataset dynamically for image tracking , here below my code. When i run unity3D i getting this error.
using UnityEngine; using System.Collections; using Vuforia; public class CreateData : MonoBehaviour { void Start () { VuforiaARController.Instance.RegisterVuforiaStartedCallback (LoadData); } DataSet myDataSet; public void LoadData () { string dataPath = "File:///" + Application.streamingAssetsPath + "/QCAR" + "/100.xml"; ObjectTracker objectTracker = (ObjectTracker)TrackerManager.Instance.GetTracker<ObjectTracker> (); Debug.Log (objectTracker); myDataSet = objectTracker.CreateDataSet (); objectTracker.ActivateDataSet (myDataSet); } }
Your answer
Follow this Question
Related Questions
how to Import unity3d project to an existed ios native app 0 Answers
App loading issue with Unity Vuforia 0 Answers
Create Custom Layout in android studio imported Unity project 0 Answers
iOs build fails on 5.3 1 Answer
how to use 360 images on ar apps 0 Answers