This problem is happening while I am still running from Editor.
Using Vuforia 7 with Unity 2017.3.0p4
The dataset is loaded. A ObjectTargetBehavior is created but the fields Database and ObjectTarget are EMPTY. And obviously it won't detect anything.
The objective is to download the dataset from an external server and dinamically load it. It will be a mobile application made with unity.
I followed the tutorial to load a dataset at runtime but so far this is the result.
I am using the following code to load the dataset at runtime:
</p> <p>void Update() {</p> <p> if (VuforiaRuntimeUtilities.IsVuforiaEnabled() && !mLoaded) {</p> <p> string externalPath = Application.streamingAssetsPath + "/OficinaPackage/Datasets/MSI_H87M-G43_OT.xml";</p> <p> if (mDataset == null) {<br> // First, create the dataset<br> ObjectTracker tracker = TrackerManager.Instance.GetTracker<ObjectTracker>();<br> mDataset = tracker.CreateDataSet();<br> }</p> <p> if (mDataset.Load(externalPath, VuforiaUnity.StorageType.STORAGE_ABSOLUTE)) {<br> mLoaded = true;<br> } else {<br> Debug.LogError("Failed to load dataset!");<br> }</p> <p> }<br> }</p> <p>
Just to make it clear. I do not have the dataset imported to my aplication. I only put the .dat and .xml in a external directory. In the final application I will need to download the dataset and load it dinamically.