Neuro-VISOR  0.2.0
Visualize and interact with computational simulations using a virtual reality interface
C2M2.Interaction.RaycastPressEvents Class Reference

Store custom events that the corresponding RaycastTriggerManager will invoke More...

Inherits MonoBehaviour.

Classes

class  RaycastHitEvent
 

Public Member Functions

void Hover (RaycastHit hit)
 
void EndHover (RaycastHit hit)
 
void Press (RaycastHit hit)
 
void HoldPress (RaycastHit hit)
 
void EndPress (RaycastHit hit)
 

Properties

RaycastHitEvent OnHover [get, set]
 
RaycastHitEvent OnHoverEnd [get, set]
 
RaycastHitEvent OnPress [get, set]
 
RaycastHitEvent OnHoldPress [get, set]
 
RaycastHitEvent OnEndPress [get, set]
 

Private Attributes

RaycastHitEvent onHover = new RaycastHitEvent()
 
RaycastHitEvent onHoverEnd = new RaycastHitEvent()
 
RaycastHitEvent onPress = new RaycastHitEvent()
 
RaycastHitEvent onHoldPress = new RaycastHitEvent()
 
RaycastHitEvent onEndPress = new RaycastHitEvent()
 

Detailed Description

Store custom events that the corresponding RaycastTriggerManager will invoke

Adapted from: https://answers.unity.com/questions/1335277/how-to-make-a-custom-onclick-event.html RaycastTrigger events will actually be called by RaycastForward

Member Function Documentation

◆ EndHover()

void C2M2.Interaction.RaycastPressEvents.EndHover ( RaycastHit  hit)

◆ EndPress()

void C2M2.Interaction.RaycastPressEvents.EndPress ( RaycastHit  hit)

◆ HoldPress()

void C2M2.Interaction.RaycastPressEvents.HoldPress ( RaycastHit  hit)

◆ Hover()

void C2M2.Interaction.RaycastPressEvents.Hover ( RaycastHit  hit)

◆ Press()

void C2M2.Interaction.RaycastPressEvents.Press ( RaycastHit  hit)

Member Data Documentation

◆ onEndPress

RaycastHitEvent C2M2.Interaction.RaycastPressEvents.onEndPress = new RaycastHitEvent()
private

◆ onHoldPress

RaycastHitEvent C2M2.Interaction.RaycastPressEvents.onHoldPress = new RaycastHitEvent()
private

◆ onHover

RaycastHitEvent C2M2.Interaction.RaycastPressEvents.onHover = new RaycastHitEvent()
private

◆ onHoverEnd

RaycastHitEvent C2M2.Interaction.RaycastPressEvents.onHoverEnd = new RaycastHitEvent()
private

◆ onPress

RaycastHitEvent C2M2.Interaction.RaycastPressEvents.onPress = new RaycastHitEvent()
private

Property Documentation

◆ OnEndPress

RaycastHitEvent C2M2.Interaction.RaycastPressEvents.OnEndPress
getset

◆ OnHoldPress

RaycastHitEvent C2M2.Interaction.RaycastPressEvents.OnHoldPress
getset

◆ OnHover

RaycastHitEvent C2M2.Interaction.RaycastPressEvents.OnHover
getset

◆ OnHoverEnd

RaycastHitEvent C2M2.Interaction.RaycastPressEvents.OnHoverEnd
getset

◆ OnPress

RaycastHitEvent C2M2.Interaction.RaycastPressEvents.OnPress
getset

The documentation for this class was generated from the following file: