STrailRenderer

Index

Functions Index

Function Name

void Clear ()

SVector GetPosition (int index)

Properties Index

Property Name

bool Enabled get set

bool ReceiveShadows get set

bool IsVisible get

bool CastShadows get set

bool MotionVectors get set

bool UseLightProbes get set

float Time get set

float StartWidth get set

float EndWidth get set

float WidthMultiplier get set

SColor StartColor get set

SColor EndColor get set

bool Autodestruct get set

int NumCapVertices get set

float MinVertexDistance get set

int TextureMode get set

int Alignment get set

SGameObject GameObject get

Functions

Clear

void Clear ()

Function Description

Parameter
Type
Description

GetPosition

SVector GetPosition (int index)

Get the position of a vertex in the trail.

Parameter
Type
Description

Properties

Enabled

bool Enabled get set

Whether this TrailRenderer component is Enabled.

ReceiveShadows

bool ReceiveShadows get set

Does this object receive shadows?

IsVisible

bool IsVisible get

Is this renderer visible in any camera?

CastShadows

bool CastShadows get set

Does the trail cast a shadow when a shadow-casting Light shines on it?

MotionVectors

bool MotionVectors get set

Set whether to use motion vectors to track this Renderer’s per-pixel, screen-space motion from one frame to the next. You can use this information to apply post-processing effects such as motion blur.

UseLightProbes

bool UseLightProbes get set

Enable Light Probes on the trail.

Time

float Time get set

How long does the trail take to fade out. (seconds)

StartWidth

float StartWidth get set

The width of the trail at the spawning point. A width of 1 corresponds to 1 unit in the game world.

EndWidth

float EndWidth get set

The width of the trail at the end of the trail. A width of 1 corresponds to 1 unit in the game world.

WidthMultiplier

float WidthMultiplier get set

Set an overall multiplier that is applied to the TrailRenderer.widthCurve to get the final width of the trail.

StartColor

SColor StartColor get set

Set the color at the start of the trail.

EndColor

SColor EndColor get set

Set the color at the end of the trail.

Autodestruct

bool Autodestruct get set

Does the GameObject of this Trail Renderer auto destruct?

NumCornerVertices

int NumCornerVertices get set

Set this to a value greater than 0, to get rounded corners between each segment of the trail.

NumCapVertices

int NumCapVertices get set

Set this to a value greater than 0, to get rounded corners on each end of the trail.

MinVertexDistance

float MinVertexDistance get set

Set the minimum distance the trail can travel before a new vertex is added to it. Smaller values with give smoother trails, consisting of more vertices, but costing more performance.

TextureMode

int TextureMode get set

Choose whether the U coordinate of the trail texture is tiled or stretched. 0 Stretch, 1 Tile, 2 Distribute Per Segment, 3 Repeat Per Segment

Alignment

int Alignment get set

Property Description

PositionCount

int PositionCount get

Get the number of line segments in the trail.

GameObject

SGameObject GameObject get

Property Description

Last updated

Was this helpful?