"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

Android Split Issue with Unity3D

 Platform : AndroidEngine : Unity3D SCENARIO:I have two scene (lets say Scene A & Scene B) which uses ARCamera and ImageTargets. The properties on both of the gameobjects are exactly the same on both the scenes. Now I followed the doc. in this link  https://developer.vuforia.com/forum/faq/unity-how-can-i-handle-large-android-apps to load the data sets. It works on SceneB but not in Scene A. Just a pointer, if I do not split the apk it works on both the scenes.  I get "dataset is null" for the Scene A it does not work and "dataset exists" for the Scene B where it works (logcat). Now the difference between the two scenes is that,  Scene A:1. There are times where I do not need the ARCamera so I search for the gameobject and deactivate/activate it.  whereas in Scene B - I do not really touch ARCamere thro' code & it works. CODE in Scene A : http://pastebin.com/M5EkTM2d REQUEST :1. I wish to know what I am doing in Scene A is the right way to do it and if I am doing wrong, I wish to know what else should I do? 2. How do I load the data set in the ARCamera where it says, Dataset is null. Is there any other way of loading the data set (probably a method call)? 3. I also tried to do Resources.Load() but I see that the Load Data Set boolean and Activate boolean variable are not serialized when they are within the project hierarchy! The iOS app is live and rolling on a very high note. I have this android build which should have been by friday but yet to be live. I have been crunching on this on the weekend too. Any help is much appreciated.  Thanks.

I finally found a solution. 

 

I just got to call this method after I activate the ARCamera. 

 

https://developer.vuforia.com/resources/api/unity/class_data_set_load_behaviour#a99badf744721c76f9407f86fa59a388b

 

Hi karsnen,

Can you give any further pointers on how you got this far? I too have followed the advice on extracting the files from the .obb to where they should be, but when I try to load the AR scene on my device it crashes. The last output on the logcat is:

Thank you so much for sharing your process.

Unfortunately, despte doing what you do, it's still not working for me.

I'm using the 3.0.9 Vuforia Unity extension, and one of Vuforia's Unity samples (3-0-19) as a new project, and Unity 4.5.1.