Skip to main content

Setting Homepage (Quit functionality)

Enable this checkbox so that a quit menu popup appears when the user presses the back button. You can enable or disable this whenever required to maintain the app journey.

On the Home page of the application, please enter via script:

JMRRigManager.Instance.setHomePage = true;
Video Tutorial

Watch the video tutorial for setting homepage functionality:

Example implementation exposing a function to setup the home page.
Using this code it is possible to call Set Home Page whenever you want in the application.

using System.Collections;
using JMRSDK;
using UnityEngine;

public class JMRHomePage : MonoBehaviour
{
public void SetHomePage(bool enable)
{
StartCoroutine(SetWithDelay(enable));
}

IEnumerator SetWithDelay(bool enable)
{
yield return null;
JMRRigManager.Instance.setHomePage = enable;
}
}