wiki.sine.space | sinespace

Difference between revisions of "Scripting/STrailRenderer"

From wiki.sine.space
Jump to: navigation, search
(Added and defined all members (21) of STrailRenderer)
 
(Replaced content with "This page has moved to: https://docs.sine.space/v/scripting/client-scripting/components/strailrenderer")
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Members==
+
This page has moved to: https://docs.sine.space/v/scripting/client-scripting/components/strailrenderer
{{ScriptFunction|void|Clear|();|Removes all points from the TrailRenderer. Useful for restarting a trail from a new position.|5=<pre></pre>}}
+
 
+
{{ScriptFunction|SVector|GetPosition|(int index);|Get the position of a vertex in the trail.|5=<pre></pre>}}
+
 
+
 
+
==Properties==
+
{{ScriptFunction|int|Alignment|{ get;set; }|Select whether the trail will face the camera, or the orientation of the Transform Component.|5=<pre></pre>}}
+
 
+
{{ScriptFunction|bool|Autodestruct|{ get;set; }|Does the GameObject of this Trail Renderer auto destruct?|5=<pre></pre>}}
+
 
+
{{ScriptFunction|bool|CastShadows|{ get;set; }|Does the trail cast a shadow when a shadow-casting Light shines on it?|5=<pre></pre>}}
+
 
+
{{ScriptFunction|bool|Enabled|{ get;set }|Whether this TrailRenderer component is Enabled or not|5=<pre></pre>}}
+
 
+
{{ScriptFunction|Scolor|EndColor|{ get;set; }|Set the color at the end of the trail.
+
|5=<pre></pre>}}
+
 
+
{{ScriptFunction|float|EndWidth|{ get;set; }|The width of the trail at the end of the trail.
+
|5=<pre></pre>}}
+
 
+
{{ScriptFunction|bool|IsVisible|{ get; }|Is this renderer visible in any camera?|5=<pre></pre>}}
+
 
+
{{ScriptFunction|float|MinVertexDistance|{ get;set; }|Set the minimum distance the trail can travel before a new vertex is added to it.|5=<pre></pre>}}
+
 
+
{{ScriptFunction|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.|5=<pre></pre>}}
+
 
+
{{ScriptFunction|int|NumCapVertices|{ get;set; }|Set this to a value greater than 0, to get rounded corners on each end of the trail.
+
|5=<pre></pre>}}
+
 
+
{{ScriptFunction|int|NumCornerVertices|{ get;set; }|Set this to a value greater than 0, to get rounded corners between each segment of the trail.
+
|5=<pre></pre>}}
+
 
+
{{ScriptFunction|int|PositionCount|{ get; }|Get the number of line segments in the trail.
+
|5=<pre></pre>}}
+
 
+
{{ScriptFunction|bool|ReceiveShadows|{ get;set; }|Does this object receive shadows?
+
|5=<pre></pre>}}
+
 
+
{{ScriptFunction|SColor|StartColor|{ get;set; }|Set the color at the start of the trail.
+
|5=<pre></pre>}}
+
 
+
{{ScriptFunction|float|StartWidth|{ get;set; }|The width of the trail at the spawning point.
+
|5=<pre></pre>}}
+
 
+
{{ScriptFunction|int|TextureMode|{ get;set; }|Choose whether the U coordinate of the trail texture is tiled or stretched.
+
|5=<pre></pre>}}
+
 
+
{{ScriptFunction|float|Time|{ get;set; }|How long does the trail take to fade out.
+
|5=<pre></pre>}}
+
 
+
{{ScriptFunction|bool|UseLightProbes|{ get;set; }|Enable Light Probes on the trail.
+
|5=<pre></pre>}}
+
 
+
{{ScriptFunction|float|WidthMultiplier|{ get;set; }|Set an overall multiplier that is applied to the TrailRenderer.widthCurve to get the final width of the trail.
+
|5=<pre></pre>}}
+
 
+
 
+
 
+
 
+
 
+
 
+
{{Scripting Navbox}}
+

Latest revision as of 06:28, 19 September 2022

This page has moved to: https://docs.sine.space/v/scripting/client-scripting/components/strailrenderer