Click or drag to resize

GestureTrail Class

The component responsible for rendering the visual gesture trail.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          RavingBots.MagicGestures.Utils.ObjectPoolingPooledGameObject
            RavingBots.MagicGestures.ControllerGestureTrail

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

The GestureTrail type exposes the following members.

Constructors
  NameDescription
Public methodGestureTrail
Initializes a new instance of the GestureTrail class
Top
Properties
  NameDescription
Public propertyLineRenderer
The line renderer used for the trail.
Top
Methods
  NameDescription
Protected methodAwake
Grab configuration from the LineRenderer.
(Overrides PooledGameObjectAwake.)
Protected methodLateUpdate
Update the layer of LineRenderer.
Public methodRelease
Called when the user releases the button.
Protected methodResetState
Reset this instance to the pristine state.
(Overrides PooledGameObjectResetState.)
Public methodSetLine
Set points on the trail.
Public methodSetMorph
Set the morphing parameters.
Public methodSetTip
Update the most recent point of the trail.
Protected methodUpdate
Update the visual effects.
Private methodUpdateFade
Update the fade effect.
Private methodUpdateMorph
Update the morph effect.
Top
Fields
  NameDescription
Private field_fade
The progress of the fade effect.
Private field_layer
The trail's layer.
Private field_lineColor
The trail's line color.
Private field_lineWidth
The trail's line width.
Private field_morph
The progress of the morph effect.
Private field_morphColor
The target color of the trail, used in the morph effect.
Private field_morphPoints
The target positions of the trail points, used in the morph effect.
Private field_released
if user has released the button.
Public fieldFadeDuration
The duration of the trail fade.
Public fieldMorphDuration
The duration of the trail morph.
Top
See Also