WoopWoop-Docs
|
Renders a trail behind an entity. More...
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. | |
Renders a trail behind an entity.
|
virtual |
Initializes the TrailRenderer.
Reimplemented from WoopWoop.Component.
|
virtual |
Updates the TrailRenderer.
deltaTime | The time elapsed since the last update. |
Reimplemented from WoopWoop.Component.
float WoopWoop.TrailRenderer.lastsFor = 10 |
float WoopWoop.TrailRenderer.lineThickness = 5f |
|
private |
|
private |