Interface to handle when the pointer is focussed on a game object.
using JMRSDK.InputModule; using UnityEngine; public class InterfaceExample: MonoBehaviour, IFocusable { public void OnFocusEnter() { Debug.Log("OnFocusEnter"); } public void OnFocusExit() { Debug.Log("OnFocusExit"); } }
OnFocusEnter
Called when hovering the pointer on gameobject
OnFocusExit
Called when removing the pointer from gameobject