Skip to main content

IFocusable

Interface to handle when the pointer is focussed on a game object.

MethodDescription
OnFocusEnterCalled when hovering the pointer on gameobject
OnFocusExitCalled when removing the pointer from gameobject
using JMRSDK.InputModule;
using UnityEngine;
public class InterfaceExample: MonoBehaviour, IFocusable
{
public void OnFocusEnter() {
Debug.Log("OnFocusEnter");
}
public void OnFocusExit() {
Debug.Log("OnFocusExit");
}
}