How to change scene in VR using gaze only?


Hey, need some help with scene change in VR for cardboard using gaze interaction without any controller.

How to implement VR and TOUCH?

What have you tried so far? The standard practise is to let the user look at the button/object for X secs to do an action. (The VR Starter Kit does something like this to change the box’s material)


Hey @yaustar thanks for reverting so swiftly.
I’m newbie to PlayCanvas and WebVR as well. I have build a simple scene taking reference from VR Starter Kit. But for interacting we need to click on the buttons, suppose we have to rotate the Box right we have to look the right button and then click on it to interact. I want to interact it without clicking it

I’m trying to build a simple interaction for Google Cardboard (0Dof), when we look at a object with ‘Recticule’ it should interact and change the scene.
For instance, there are 2 Scenes ‘A’ and ‘B’, If a person in Scene A looks at a certain object he should teleport to scene B or any other scene which we define.


With the Starter kit, you can see how you have to stay looking at a box before it changes to an orange material? That’s how you would ‘click’ on a button with gaze only.

In your case, you want to change scene instead of changing colour.

Just be wary that the camera in the current scene is being used for the VR view and changing scene by destroying the entirety (as shown in the tutorials) of the current scene may cause issues. You may have look at using a base scene that has the VR camera setup and then load the scene additively under another graph node.


You can use a timer in conjunction with a raycasting or timer in conjunction with a infinite ray and bounding box, for example. This will allow you to define objects without pressing and to perform any actions under certain conditions. I’m currently working on something similar…


Please correct me if i’m wrong, this is the VR Starter Kit tutorial i guess . If this is it, then it is not clicking/interacting by looking.

Regarding your changing scene statement, I didn’t get it totally it would be really nice if you can upload a video demonstrating that or any ScreenShot that would be really nice. I believe this will aid lot of folk out there who are trying to build Simple Cardboard webVR experience. This is my scene hope it will give you some idea…


When you create a new project, there is a WebVR template that you can use. It’s forked off


Awesome!! Thanks @yaustar You’re a life saver.

Now Just explain me regarding changing scenes process. How can we load another scene under another graph node ??