By Strasza
on Tue, 03/20/2018 - 16:05
Hi, I am new in Vuforia and Unity,
I am trying to develop an AR book with multiple pages. Theoretically, someone can just view two pages of a book at the same time, and to reduce the memory usage I like to split the books on several pages. Each page as a single scene with image target and 3D object. Now, I need a script that can run on the main scene to –
- Load the corresponding scene when a specific image target is found (i.e. ImageTarget_01 for Scene_01, and ImageTarget_02 for Scene_02 etc.)
- Unload/kill any previously loaded scene/s from the memory, at the same time.
- If aren’t tracking something attached to a scene then unload the current scene.
Is there anyone can help me to write this script? or can advice any resource to follow.
Here's some code I pulled
Here's some code I pulled form a project. You'd replace DefaultTrackableEventHandler on your image targets with something like this. Unfortunatly I don't have time to explain it, hopefully it can help.
Thanks dpizzle for your time
Thanks dpizzle for your time and effort. I have managed to solve the issue, anyway.