"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Dynamic dataset loading

Hi,

I'm currently developping an app that will be deployed on both iOS and Android, and since I want to dynamically change the dataset (downloaded from my server), I'm using the Application.persistentDataPath. I saw a lot a topics linked to the problem, but my issue is that my dataSet.Exists returns false even if my .xml file on the path I wrote exists.

I followed this "How To" article and I have the same code to load the .xml file. Of course the .dat file is alongside the .xml file so I do not know why it doesn't work since, when I open the path I gave to Unity via a debug line, the file do exist and open without problems.

Do you have any ideas what I could have miss ?

Thanks a lot !

Hello,

See if this article helps: https://library.vuforia.com/articles/Solution/Unity-Load-DataSet-from-SD-Card

Thanks

jslanglois

Wed, 03/29/2017 - 17:29

In reply to by jslanglois

I must add that even if I want to load a dataset with a .xml file in the StreamingAsset/QCAR directory (with the use of VuforiaUnity.StorageType.STORAGE_APP) doesn't work, it's definitely not a problem of path.

jslanglois

Thu, 03/30/2017 - 14:45

Ok, I finally figured it out. Since I'm french and used an acute accent in the company name (in the Player Settings), the Application.persistentDataPath wasn't functionning. I just deleted the acute accent and it's now working.