- Home /
How to control 2 scenes with 1 script
Hello everybody,
I am trying to create an AR app. With this app I will switch videos in another scene. At the moment I have built the video player on the PC. The video player consists of five videos. The videos are prefabs in the resource folder. And I have the AR app, in which I have an object that I can change by clicking on another object with tags. The two scenes are connected via unet wifi.
Now I'm trying to code a script that if the ar-object is switched by click, it will change the video at the PC at the same time. The script is simple. If you click on the object, you load the correct prefab from the resource folder. I put the script to each video prefab. I think my fault is somewhere in thinking of how i connect the script with both of the scenes.
It doesn't work, so does anyone of you have any idea how I could do the video switch? Thanks for your help!
Your answer
Follow this Question
Related Questions
Don't work video texture with Kudan AR (Unity3D, Android). 0 Answers
Unity 360 Recorder pausing on rendering a 360 video? 0 Answers
Can you assign a simple variable directly in Inspector without writing a script? 3 Answers
Scanning and extracting Alphanumeric text from Camera Image in Unity 0 Answers