Simple IAP System  5.0
Public Attributes | Properties | Events | List of all members
VREyeRaycaster

In order to interact with objects in the scene this class casts a ray into the scene and if it finds a VRInteractiveItem it exposes it for other classes to use. This script should be generally be placed on the camera. More...

Inheritance diagram for VREyeRaycaster:

Public Attributes

Canvas m_Canvas
 
Transform m_Camera
 
LayerMask m_ExclusionLayers
 
VRReticle m_Reticle
 
VRInput m_VrInput
 
VRSelectionRadial m_SelectionRadial
 
bool m_ShowDebugRay
 
float m_DebugRayLength = 5f
 
float m_DebugRayDuration = 1f
 
float m_RayLength = 500f
 

Properties

VRInteractiveItem CurrentInteractible [get]
 Utility for other classes to get the current interactive item. More...
 

Events

Action< RaycastHit > OnRaycasthit
 

Detailed Description

In order to interact with objects in the scene this class casts a ray into the scene and if it finds a VRInteractiveItem it exposes it for other classes to use. This script should be generally be placed on the camera.

Member Data Documentation

Transform m_Camera
Canvas m_Canvas
float m_DebugRayDuration = 1f
float m_DebugRayLength = 5f
LayerMask m_ExclusionLayers
float m_RayLength = 500f
VRReticle m_Reticle
VRSelectionRadial m_SelectionRadial
bool m_ShowDebugRay
VRInput m_VrInput

Property Documentation

VRInteractiveItem CurrentInteractible
get

Utility for other classes to get the current interactive item.

Event Documentation

Action<RaycastHit> OnRaycasthit

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