wiki.sine.space | sinespace

Scripting/STrailRenderer

From wiki.sine.space
Revision as of 10:21, 22 December 2020 by Voidtech (Talk | contribs) (Added and defined all members (21) of STrailRenderer)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Members

Clear

void Clear ();

Removes all points from the TrailRenderer. Useful for restarting a trail from a new position.


GetPosition

SVector GetPosition (int index);

Get the position of a vertex in the trail.



Properties

Alignment

int Alignment { get;set; }

Select whether the trail will face the camera, or the orientation of the Transform Component.


Autodestruct

bool Autodestruct { get;set; }

Does the GameObject of this Trail Renderer auto destruct?


CastShadows

bool CastShadows { get;set; }

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


Enabled

bool Enabled { get;set }

Whether this TrailRenderer component is Enabled or not


EndColor

Scolor EndColor { get;set; }

Set the color at the end of the trail.



EndWidth

float EndWidth { get;set; }

The width of the trail at the end of the trail.



IsVisible

bool IsVisible { get; }

Is this renderer visible in any camera?


MinVertexDistance

float MinVertexDistance { get;set; }

Set the minimum distance the trail can travel before a new vertex is added to 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.


NumCapVertices

int NumCapVertices { get;set; }

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



NumCornerVertices

int NumCornerVertices { get;set; }

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



PositionCount

int PositionCount { get; }

Get the number of line segments in the trail.



ReceiveShadows

bool ReceiveShadows { get;set; }

Does this object receive shadows?



StartColor

SColor StartColor { get;set; }

Set the color at the start of the trail.



StartWidth

float StartWidth { get;set; }

The width of the trail at the spawning point.



TextureMode

int TextureMode { get;set; }

Choose whether the U coordinate of the trail texture is tiled or stretched.



Time

float Time { get;set; }

How long does the trail take to fade out.



UseLightProbes

bool UseLightProbes { get;set; }

Enable Light Probes on the trail.



WidthMultiplier

float WidthMultiplier { get;set; }

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