Class YVRRaycastLaserBeam
Class for drawing raycasting laser beam
Namespace: YVR.Core
Assembly: YVR.Core.Runtime.dll
Syntax
public class YVRRaycastLaserBeam : MonoBehaviour
Remarks
It's highly recommended to implement your own version based on this script
Fields
Name | Description |
---|---|
cursorGameObject | The Gameobject instance which indicating the cursor |
cursorMaterial | The Material of cursorGameObject |
cursorTransform | The transform of cursorGameObject |
laserLength | The display length of the laser beam |
lineRenderer | The line render used for rendering the laser beam |
Methods
Name | Description |
---|---|
GenerateCursor() | Generate cursorGameObject and cursorTransform |
GenerateLaserBeamLineRender() | Generate lineRenderer |
OnDestroy() | Virtual version of Unity life cycle function |
Start() | Virtual version of Unity life cycle function |
UpdateCursor(GameObject, Vector3, Vector3) | Updateing cursor |
UpdateLaserBeam() | Updateing laser beam |