Energy Based Objects  2.01
Public Member Functions | Static Public Member Functions | Public Attributes | Events
MoveLineRenderer Class Reference

Modifies two points of a LineRenderer. More...

List of all members.

Public Member Functions

void MoveTo (Vector3 start, Vector3 end, float startOffset, float endOffset, bool moveStart, bool moveEnd, float speed, bool speedIsLineDistance)

Static Public Member Functions

static Vector3 ClampVector (Vector3 point, Vector3 lineStart, Vector3 lineEnd)

Public Attributes

Vector3 startPosition
 Start of the LineRenderer.
Vector3 endPosition
 End of the LineRenderer.
Vector3 currentStartPosition
Vector3 currentEndPosition
bool moveStart
 Move the start point of the LineRenderer?
bool moveEnd
 Move the end point of the LineRenderer?
float startOffset
 Offset the time of the start point.
float endOffset
 Offset the time of the end point.
float speed
bool speedIsLineDistance

Events

Action OnLineReachEnd
 Event fires when the end of the line reaches the endPosition. This will be immediately fired if moveEnd is false.
Action< float > OnLineReachDistance
 Distance from the start.

Detailed Description

Modifies two points of a LineRenderer.


Member Data Documentation

float endOffset

Offset the time of the end point.

Vector3 endPosition

End of the LineRenderer.

bool moveEnd

Move the end point of the LineRenderer?

bool moveStart

Move the start point of the LineRenderer?

float startOffset

Offset the time of the start point.

Vector3 startPosition

Start of the LineRenderer.


Event Documentation

Action<float> OnLineReachDistance

Distance from the start.

Action OnLineReachEnd

Event fires when the end of the line reaches the endPosition. This will be immediately fired if moveEnd is false.

 All Classes Namespaces Functions Variables Properties Events