Simple IAP System  4.3
Public Member Functions | Public Attributes | Properties | List of all members
VRReticle

The reticle is a small point at the centre of the screen. It is used as a visual aid for aiming. The position of the reticle is either at a default position in space or on the surface of a VRInteractiveItem as determined by the VREyeRaycaster. More...

Inheritance diagram for VRReticle:

Public Member Functions

void Hide ()
 Disable rendering of the reticle. More...
 
void Show ()
 Enable rendering of the reticle. More...
 
void SetPosition ()
 This overload of SetPosition is used when the the VREyeRaycaster hasn't hit anything. More...
 
void SetPosition (RaycastHit hit)
 This overload of SetPosition is used when the VREyeRaycaster has hit something. More...
 

Public Attributes

float m_DefaultDistance = 5f
 
bool m_UseNormal
 
Image m_Image
 
Transform m_ReticleTransform
 
Transform m_Camera
 

Properties

bool UseNormal [get, set]
 
Transform ReticleTransform [get]
 

Detailed Description

The reticle is a small point at the centre of the screen. It is used as a visual aid for aiming. The position of the reticle is either at a default position in space or on the surface of a VRInteractiveItem as determined by the VREyeRaycaster.

Member Function Documentation

void Hide ( )

Disable rendering of the reticle.

void SetPosition ( )

This overload of SetPosition is used when the the VREyeRaycaster hasn't hit anything.

void SetPosition ( RaycastHit  hit)

This overload of SetPosition is used when the VREyeRaycaster has hit something.

void Show ( )

Enable rendering of the reticle.

Member Data Documentation

Transform m_Camera
float m_DefaultDistance = 5f
Image m_Image
Transform m_ReticleTransform
bool m_UseNormal

Property Documentation

Transform ReticleTransform
get
bool UseNormal
getset

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