In continuation of the previous post, I would need to figure out a way for the user to start with the AR Scene and then followed to the VR Scene when in triggered. For that to work, I used the Gaze detection input to change scenes.
Similar to the “Changing Scenes” I made in earlier posts, I added a game object that’s called Scene_Manager which I have attached a Load Scene (script). The use of this script is to let unity load scenes depending on the variable of the scenes that is attached in the Build Settings.


using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class LoadScene : MonoBehaviour
{
public void SceneLoader(int SceneIndex)
{
SceneManager.LoadScene(SceneIndex);
}
}

As seen in the image above, AR scene has the integer of number 2 and VR Scene on number 3. This is to elaborate which scene should be placed when the onload function happens.

I have also attached the scene_manager game object on the Completion Event() and inserting integer as I want the VR Scene to be loaded once the user has completed the gaze detection on the image target. Below is the footage of the action working.
