IMixedRealityFocusHandler Interface
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Interface to implement to react to focus enter/exit.
public interface class IMixedRealityFocusHandler : UnityEngine::EventSystems::IEventSystemHandler
public interface IMixedRealityFocusHandler : UnityEngine.EventSystems.IEventSystemHandler
type IMixedRealityFocusHandler = interface
interface IEventSystemHandler
Public Interface IMixedRealityFocusHandler
Implements IEventSystemHandler
- Derived
- Implements
-
Unity
Engine. Event Systems. IEvent System Handler
The events on this interface are related to those of IMixedRealityFocusChangedHandler, whose event have a known ordering with this interface:
IMixedRealityFocusChangedHandler::OnBeforeFocusChange
IMixedRealityFocusHandler::OnFocusEnter
IMixedRealityFocusHandler::OnFocusExit
IMixedRealityFocusChangedHandler::OnFocusChanged
Because these two interfaces are different, consumers must be wary about having nested hierarchies where some game objects will implement both interfaces, and more deeply nested object within the same parent-child chain that implement a single one of these - such a presence can lead to scenarios where one interface is invoked on the child object, and then the other interface is invoked on the parent object (thus, the parent would "miss" getting the event that the child had already processed).
On |
The Focus Enter event is raised on this GameObject whenever a IMixedRealityPointer's focus enters this GameObject's Collider. |
On |
The Focus Exit event is raised on this GameObject whenever a IMixedRealityPointer's focus leaves this GameObject's Collider. |