SLineRenderer
Index
Functions Index
void SetPosition (int index, SVector position)
SVector GetPosition (int index)
void SetPositions (SVector[] positions)
SVector[] GetPositions ()
void SetWidth (float start, float end)
void SetColors (SColor start, SColor end)
Properties Index
bool Enabled get set
bool ReceiveShadows get set
bool IsVisible get
bool CastShadows get set
bool MotionVectors get set
bool UseLightProbes get set
float StartWidth get set
float EndWidth get set
float WidthMultiplier get set
SColor StartColor get set
SColor EndColor get set
int PositionCount get set
bool UseWorldSpace get set
bool Loop get set
int NumCornerVertices get set
int NumCapVertices get set
int TextureMode get set
int Alignment get set
SGameObject GameObject get
Functions
SetPosition
void SetPosition (int index, SVector position)
Set the position of a vertex in the line.
GetPosition
SVector GetPosition (int index)
Get the position of a vertex in the line
SetPositions
void SetPositions (SVector[] positions)
Set the positions of all vertices in the line.
GetPositions
SVector[] GetPositions ()
Get the positions of all vertices in the line.
SetWidth
void SetWidth (float start, float end)
Set width at start and end
SetColors
void SetColors (SColor start, SColor end)
Set color at start and end (Line shader necessary)
Properties
Enabled
bool Enabled get set
Makes the renderer visible if enabled.
ReceiveShadows
bool ReceiveShadows get set
Enable this option to make the line display any shadows that are cast upon it.
IsVisible
bool IsVisible get
To check if this renderer is visible.
CastShadows
bool CastShadows get set
Specify if and how the line casts shadows when a suitable Light shine on it.
MotionVectors
bool MotionVectors get set
Specifies whether this renderer has a per-object motion vector pass. If set to true, this object will have a per-object motion vector pass rendered
UseLightProbes
bool UseLightProbes get set
The light probe interpolation type.
StartWidth
float StartWidth get set
Set the width at the start of the line.
EndWidth
float EndWidth get set
Set the width at the end of the line.
WidthMultiplier
float WidthMultiplier get set
Set an overall multiplier that is applied to the LineRenderer.widthCurve to get the final width of the line.
StartColor
SColor StartColor get set
Set the color at the start of the line.
EndColor
SColor EndColor get set
Set the color at the end of the line.
PositionCount
int PositionCount get set
Set/get the number of vertices.
UseWorldSpace
bool UseWorldSpace get set
If enabled, the points are considered as world space coordinates. If disabled, they are local to the transform of the GameObject to which this component is attached.
Loop
bool Loop get set
Enable this to connect the first and last positions of the line, and form a closed loop.
NumCornerVertices
int NumCornerVertices get set
Set this to a value greater than 0, to get rounded corners between each segment of the line.
NumCapVertices
int NumCapVertices get set
Set this to a value greater than 0, to get rounded corners on each end of the line.
TextureMode
int TextureMode get set
Control how the Texture is applied to the line. (0-3)
Alignment
int Alignment get set
Set the direction that the line faces. (0 or 1)
GameObject
SGameObject GameObject get
Property Description
Last updated
Was this helpful?

