Meta SDK2 Beta  2.7.0
Meta.UI.MetaHandGraphicsRaycaster Class Reference

Performs raycaster for the hands. Many methods from this class are taken directly from the GraphicsRaycaster source code, if anything stops working in this class compare it to updates in the GraphicsRaycaster code. More...

Inheritance diagram for Meta.UI.MetaHandGraphicsRaycaster:

Public Member Functions

void SetEventCamera (Camera camera)
 Set Camera used to cast events. More...
 
override void Raycast (PointerEventData eventData, List< RaycastResult > resultAppendList)
 
void Register (UIEventTrigger trigger)
 
void ProcessHandEvent (PointerEventData pointerEvent, bool pressed, bool released)
 
void ProcessMove (PointerEventData eventData)
 
void ProcessDrag (MetaHandEventData eventData)
 

Protected Member Functions

override void OnEnable ()
 
override void OnDisable ()
 
void DeselectIfSelectionChanged (GameObject currentOverGo, BaseEventData pointerEvent)
 
void HandlePointerExitAndEnter (PointerEventData currentPointerData, GameObject newEnterTarget)
 
GameObject FindCommonRoot (GameObject g1, GameObject g2)
 

Properties

EventSystem EventSystem [get]
 
override Camera eventCamera [get]
 

Detailed Description

Performs raycaster for the hands. Many methods from this class are taken directly from the GraphicsRaycaster source code, if anything stops working in this class compare it to updates in the GraphicsRaycaster code.

Member Function Documentation

◆ DeselectIfSelectionChanged()

void Meta.UI.MetaHandGraphicsRaycaster.DeselectIfSelectionChanged ( GameObject  currentOverGo,
BaseEventData  pointerEvent 
)
inlineprotected

◆ FindCommonRoot()

GameObject Meta.UI.MetaHandGraphicsRaycaster.FindCommonRoot ( GameObject  g1,
GameObject  g2 
)
inlineprotected

◆ HandlePointerExitAndEnter()

void Meta.UI.MetaHandGraphicsRaycaster.HandlePointerExitAndEnter ( PointerEventData  currentPointerData,
GameObject  newEnterTarget 
)
inlineprotected

◆ OnDisable()

override void Meta.UI.MetaHandGraphicsRaycaster.OnDisable ( )
inlineprotected

◆ OnEnable()

override void Meta.UI.MetaHandGraphicsRaycaster.OnEnable ( )
inlineprotected

◆ ProcessDrag()

void Meta.UI.MetaHandGraphicsRaycaster.ProcessDrag ( MetaHandEventData  eventData)
inline

Parameters
eventData

◆ ProcessHandEvent()

void Meta.UI.MetaHandGraphicsRaycaster.ProcessHandEvent ( PointerEventData  pointerEvent,
bool  pressed,
bool  released 
)
inline

Parameters
pointerEvent
pressed
released

◆ ProcessMove()

void Meta.UI.MetaHandGraphicsRaycaster.ProcessMove ( PointerEventData  eventData)
inline

Parameters
eventData

◆ Raycast()

override void Meta.UI.MetaHandGraphicsRaycaster.Raycast ( PointerEventData  eventData,
List< RaycastResult >  resultAppendList 
)
inline

◆ Register()

void Meta.UI.MetaHandGraphicsRaycaster.Register ( UIEventTrigger  trigger)
inline

Parameters
trigger

◆ SetEventCamera()

void Meta.UI.MetaHandGraphicsRaycaster.SetEventCamera ( Camera  camera)
inline

Set Camera used to cast events.

Property Documentation

◆ eventCamera

override Camera Meta.UI.MetaHandGraphicsRaycaster.eventCamera
get

◆ EventSystem

EventSystem Meta.UI.MetaHandGraphicsRaycaster.EventSystem
get