C# Class GazePointer, OCDEscape

This is a pointer for gazing and interacting with things It should be attached to the camera, and the object's forward direction should match with where it is pointing.
Inheritance: MonoBehaviour
Mostrar archivo Open project: gadauto3/OCDEscape Class Usage Examples

Public Properties

Property Type Description
anchorDistance float
grabbedInteractableMask LayerMask
interactableMask LayerMask

Protected Properties

Property Type Description
anchor Transform
highlightedGrabbedObject HighlightManager,
highlightedObject InteractableObject,
interacting bool
interactingObject InteractableObject,

Protected Methods

Method Description
Awake ( ) : void
CreateAnchor ( ) : void
FixedUpdate ( ) : void
IsClickDown ( ) : bool
OnHit ( RaycastHit hitInfo, InteractableObject, interactable ) : void
Update ( ) : void
UpdateHighlight ( InteractableObject, interactable ) : void
UpdateInteracting ( ) : void
UpdateNotInteracting ( ) : void

Method Details

Awake() protected method

protected Awake ( ) : void
return void

CreateAnchor() protected method

protected CreateAnchor ( ) : void
return void

FixedUpdate() protected method

protected FixedUpdate ( ) : void
return void

IsClickDown() protected method

protected IsClickDown ( ) : bool
return bool

OnHit() protected method

protected OnHit ( RaycastHit hitInfo, InteractableObject, interactable ) : void
hitInfo UnityEngine.RaycastHit
interactable InteractableObject,
return void

Update() protected method

protected Update ( ) : void
return void

UpdateHighlight() protected method

protected UpdateHighlight ( InteractableObject, interactable ) : void
interactable InteractableObject,
return void

UpdateInteracting() protected method

protected UpdateInteracting ( ) : void
return void

UpdateNotInteracting() protected method

protected UpdateNotInteracting ( ) : void
return void

Property Details

anchor protected_oe property

protected Transform anchor
return Transform

anchorDistance public_oe property

public float anchorDistance
return float

grabbedInteractableMask public_oe property

public LayerMask grabbedInteractableMask
return LayerMask

highlightedGrabbedObject protected_oe property

protected HighlightManager, highlightedGrabbedObject
return HighlightManager,

highlightedObject protected_oe property

protected InteractableObject, highlightedObject
return InteractableObject,

interactableMask public_oe property

public LayerMask interactableMask
return LayerMask

interacting protected_oe property

protected bool interacting
return bool

interactingObject protected_oe property

protected InteractableObject, interactingObject
return InteractableObject,