Hello, I am using object targets and many of them. The APK is getting huge because of OD files.
How can i install them as asset bundles?
My target database files are in Assets/StreamingAssets/Vuforia folder and when i try to build bundle it gives this error:
Assets in StreamingAssets cannot be included in AssetBundles:
When i move these two files to another folder, it adds .xml file into the asset bundle build but gives this error for .dat file:
Unrecognized assets cannot be included in AssetBundles: "Assets/Resources/BLWA_OT.dat".
So i moved files to resources folder and changed .dat extension to .bytes and it built the bundle.
Where i will change .bytes extension to .dat in apk build?
Do I keep those files out of StreamingAssets/Vuforia folder in order not to build them in APK?
Now for loading data sets from phone path; do i have to move files back into StreamingAssets/Vuforia folder?
Thank you very much
Attachment | Size |
---|---|
![]() | 54.56 KB |
that solution didnt work because DefaultTrackableEventHandler script resets itself when editor reopens.
So what i did is:
tb.gameObject.GetComponent<DefaultTrackableEventHandler>().OnTargetLost = new UnityEngine.Events.UnityEvent();
tb.gameObject.GetComponent<DefaultTrackableEventHandler>().OnTargetFound = new UnityEngine.Events.UnityEvent();
in my script.