Upgrade Guide 4.34.1

For JMRSDK 4.34.1

Upgrade Unity to 2021.3.x LTS

  • To interact with Gaze and click on editor press [j] on the keyboard

  • To enable and disable the dock, developers can use JMRSystemDockManager.Instance.ToggleDockVisiblity(bool) function

  • To enable and disable interaction, developers can use JMRPointerManager.Instance.ToggleInteraction(bool, JMRPointerManager.PointingSource.Head)

Analytics

This is a compulsory step to add the analytics manager to each of your scenes or as `Dont destroy on load`

Adding Analytics Manager as Don't Destroy On Load.

  1. Create a C# script named JMRAnalyticsDontDestroyOnLoad as shown below.

using UnityEngine;

public class JMRAnalyticsDontDestroyOnLoad : MonoBehaviour
{
    void Start()
    {
        transform.parent = null;
        DontDestroyOnLoad(gameObject);
    }
}
  1. In the first scene of your application, create an empty gameobject and add JMRAnalyticsManager and JMRAnalyticsDontDestroyOnLoad script on the same gameobject.

First Scene of the project needs to have this.

Alternate Method: JMRAnalyticsManager can also be added to any game object in each scene of the project.

  1. Add JMRSDK.JMRAnalyticsManager in Project Settings > Script Execution Order and setting its order to less than the default time ( < 0 )

Adding JMRAnalytics Manager to -50 in Script execution order

Gaze

Toolkit

Last updated