WoopWoop-Docs
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Private Attributes | List of all members
WoopWoop.TrailRenderer Class Reference

Renders a trail behind an entity. More...

Inheritance diagram for WoopWoop.TrailRenderer:
WoopWoop.Component

Public Member Functions

override void Awake ()
 Initializes the TrailRenderer.
 
override void Update (float deltaTime)
 Updates the TrailRenderer.
 
- Public Member Functions inherited from WoopWoop.Component
void Attach (Entity entity)
 Attaches the component to an entity.
 
virtual void Start ()
 Called when the component is started if it's enabled.
 
virtual void OnEndOfFrame ()
 Called on the end of every frame.
 
virtual void Stop ()
 Called when the component is removed.
 
virtual void OnDrawGizmo ()
 Tells the renderer how to draw the object's editor gizmos.
 

Public Attributes

float lastsFor = 10
 
float lineThickness = 5f
 

Private Attributes

List< Vector2 > segments
 
Stopwatch stopwatch
 

Additional Inherited Members

- Properties inherited from WoopWoop.Component
Entity entity [get, private set]
 The entity to which this component is attached.
 
Transform transform [get]
 The transform of the entity to which this component is attached.
 
bool Enabled = true [get, set]
 Determines whether the component is enabled.
 

Detailed Description

Renders a trail behind an entity.

Member Function Documentation

◆ Awake()

override void WoopWoop.TrailRenderer.Awake ( )
virtual

Initializes the TrailRenderer.

Reimplemented from WoopWoop.Component.

◆ Update()

override void WoopWoop.TrailRenderer.Update ( float deltaTime)
virtual

Updates the TrailRenderer.

Parameters
deltaTimeThe time elapsed since the last update.

Reimplemented from WoopWoop.Component.

Member Data Documentation

◆ lastsFor

float WoopWoop.TrailRenderer.lastsFor = 10

◆ lineThickness

float WoopWoop.TrailRenderer.lineThickness = 5f

◆ segments

List<Vector2> WoopWoop.TrailRenderer.segments
private

◆ stopwatch

Stopwatch WoopWoop.TrailRenderer.stopwatch
private

The documentation for this class was generated from the following file: