Click or drag to resize

LaserRenderer Class

The component responsible for rendering the laser pointer.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          RavingBots.MagicGestures.ControllerLaserRenderer

Namespace:  RavingBots.MagicGestures.Controller
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public class LaserRenderer : MonoBehaviour

The LaserRenderer type exposes the following members.

Constructors
  NameDescription
Public methodLaserRenderer
Initializes a new instance of the LaserRenderer class
Top
Methods
  NameDescription
Protected methodAwake
Remember the initial width and scale.
Private methodSetShowProgress
Update the progress of the animation.
Protected methodUpdate
Update the visuals if the animation is playing.
Top
Fields
  NameDescription
Private field_initScale
The initial scale of the pointer.
Private field_initWidth
The initial width of the pointer.
Private field_laserPointer
The laser pointer component drawn.
Private field_lineRenderer
The LineRenderer component used.
Private field_showProgress
The progress of the show/hide animation.
Protected fieldLength
The length of the laser.
Protected fieldScaled
The transform scaled in the show/hide animation.
Protected fieldShowDuration
The duration of the show/hide animation.
Top
See Also