UnityMol
1.0.25beta
|
A visual pointer representation of a straight beam with an optional cursor at the end. More...
Public Member Functions | |
override void | UpdateRenderer () |
The UpdateRenderer method is used to run an Update routine on the pointer. More... | |
override GameObject [] | GetPointerObjects () |
The GetPointerObjects returns an array of the auto generated GameObjects associated with the pointer. More... | |
Public Attributes | |
float | maximumLength = 100f |
float | scaleFactor = 0.002f |
float | cursorScaleMultiplier = 25f |
bool | cursorMatchTargetRotation = false |
bool | cursorDistanceRescale = false |
Vector3 | maximumCursorScale = new Vector3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity) |
GameObject | customTracer |
GameObject | customCursor |
GameObject | actualTracer |
Protected Member Functions | |
override void | ToggleRenderer (bool pointerState, bool actualState) |
override void | CreatePointerObjects () |
override void | DestroyPointerObjects () |
override void | ChangeMaterial (Color givenColor) |
override void | UpdateObjectInteractor () |
virtual void | CreateTracer () |
virtual void | CreateCursor () |
virtual void | CheckRayMiss (bool rayHit, RaycastHit pointerCollidedWith) |
virtual void | CheckRayHit (bool rayHit, RaycastHit pointerCollidedWith) |
virtual float | CastRayForward () |
virtual void | SetPointerAppearance (float tracerLength) |
Protected Attributes | |
GameObject | actualContainer |
GameObject | actualCursor |
Vector3 | cursorOriginalScale = Vector3.one |
A visual pointer representation of a straight beam with an optional cursor at the end.
Optional Components:
VRTK_PlayAreaCursor
- A Play Area Cursor that will track the position of the pointer cursor.VRTK_PointerDirectionIndicator
- A Pointer Direction Indicator that will track the position of the pointer cursor.Script Usage:
VRTK_StraightPointerRenderer
script on the same GameObject as the Pointer script it is linked to.Pointer Renderer
parameter on the required Pointer script.Script Dependencies:
VRTK/Examples/003_Controller_SimplePointer
shows the simple pointer in action and code examples of how the events are utilised and listened to can be viewed in the script VRTK/Examples/ExampleResources/Scripts/VRTK_ControllerPointerEvents_ListenerExample.cs
|
protectedvirtual |
|
protected |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protectedvirtual |
|
protected |
override GameObject [] VRTK.VRTK_StraightPointerRendererNoRB.GetPointerObjects | ( | ) |
The GetPointerObjects returns an array of the auto generated GameObjects associated with the pointer.
|
protectedvirtual |
|
protected |
|
protected |
override void VRTK.VRTK_StraightPointerRendererNoRB.UpdateRenderer | ( | ) |
The UpdateRenderer method is used to run an Update routine on the pointer.
|
protected |
|
protected |
GameObject VRTK.VRTK_StraightPointerRendererNoRB.actualTracer |
bool VRTK.VRTK_StraightPointerRendererNoRB.cursorDistanceRescale = false |
bool VRTK.VRTK_StraightPointerRendererNoRB.cursorMatchTargetRotation = false |
|
protected |
float VRTK.VRTK_StraightPointerRendererNoRB.cursorScaleMultiplier = 25f |
GameObject VRTK.VRTK_StraightPointerRendererNoRB.customCursor |
GameObject VRTK.VRTK_StraightPointerRendererNoRB.customTracer |
Vector3 VRTK.VRTK_StraightPointerRendererNoRB.maximumCursorScale = new Vector3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity) |
float VRTK.VRTK_StraightPointerRendererNoRB.maximumLength = 100f |
float VRTK.VRTK_StraightPointerRendererNoRB.scaleFactor = 0.002f |