Log in or register to post comments

Load a certain scene after certain imagetarget loaded

September 3, 2020 - 2:03am #1

I really need help for my project. i'm building an AR app using unity and vuforia, but i'm stuck on one problem. i have scene1 which have UI objects that will explain imagetarget1's model and scene2 with explanation for imagetarget2's model. I want my app to load/switch to certain scene when certain imagetarget is tracked. Like if imagetarget1 is tracked then it will load scene1, but if imagetarget2 is the one getting tracked the it will load scene2. How do i achieve this? thank you.

Load a certain scene after certain imagetarget loaded

September 9, 2020 - 3:32am #2

Hi,

you can write a script with a function like this:

public void ChangeScene(string scenename)     {         SceneManager.LoadScene(scenename);     }

Then call the function OnTargetFound() with your scene name.

Can you explain why you want to display this in different scenes? I think it would be easier to do this in one scene.

Log in or register to post comments