Sinespace Client
2023.2.17543
Client-side scripting for Sinespace
|
Public Member Functions | |
void | SetPosition (int index, SVector position) |
Set the position of a vertex in the line. More... | |
SVector | GetPosition (int index) |
Get the position of a vertex in the line More... | |
void | SetPositions (SVector[] positions) |
Set the positions of all vertices in the line. More... | |
SVector[] | GetPositions () |
Set the positions of all vertices in the line. More... | |
void | SetWidth (float start, float end) |
Set width at start and end More... | |
void | SetColors (SColor start, SColor end) |
Set color at start and end (Line shader necessary) More... | |
Properties | |
bool | Enabled [get, set] |
Makes the rendered visible if enabled. More... | |
bool | ReceiveShadows [get, set] |
Enable this option to make the line display any shadows that are cast upon it. More... | |
bool | IsVisible [get] |
To check if this renderer is visible. More... | |
bool | CastShadows [get, set] |
Specify if and how the line casts shadows when a suitable Light shine on it. More... | |
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. More... | |
bool | UseLightProbes [get, set] |
The light probe interpolation type. More... | |
float | StartWidth [get, set] |
Set the width at the start of the line. More... | |
float | EndWidth [get, set] |
Set the width at the end of the line. More... | |
float | WidthMultiplier [get, set] |
Set an overall multiplier that is applied to the LineRenderer.widthCurve to get the final width of the line. More... | |
SColor | StartColor [get, set] |
Set the color at the start of the line. More... | |
SColor | EndColor [get, set] |
Set the color at the end of the line. More... | |
int | PositionCount [get, set] |
Set/get the number of vertices. More... | |
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. More... | |
bool | Loop [get, set] |
Enable this to connect the first and last positions of the line, and form a closed loop. More... | |
int | NumCornerVertices [get, set] |
Set this to a value greater than 0, to get rounded corners between each segment of the line. More... | |
int | NumCapVertices [get, set] |
Set this to a value greater than 0, to get rounded corners on each end of the line. More... | |
int | TextureMode [get, set] |
Control how the Texture is applied to the line. (0-3) More... | |
int | Alignment [get, set] |
Set the direction that the line faces. (0 or 1) More... | |
Properties inherited from ScriptClassComponent< LineRenderer > | |
SGameObject | GameObject [get] |
Return the GameObject which component added. More... | |
SVector SineSpace.Scripting.Components.SLineRenderer.GetPosition | ( | int | index | ) |
Get the position of a vertex in the line
SVector [] SineSpace.Scripting.Components.SLineRenderer.GetPositions | ( | ) |
Set the positions of all vertices in the line.
Set color at start and end (Line shader necessary)
void SineSpace.Scripting.Components.SLineRenderer.SetPosition | ( | int | index, |
SVector | position | ||
) |
Set the position of a vertex in the line.
void SineSpace.Scripting.Components.SLineRenderer.SetPositions | ( | SVector[] | positions | ) |
Set the positions of all vertices in the line.
void SineSpace.Scripting.Components.SLineRenderer.SetWidth | ( | float | start, |
float | end | ||
) |
Set width at start and end
|
getset |
Set the direction that the line faces. (0 or 1)
|
getset |
Specify if and how the line casts shadows when a suitable Light shine on it.
|
getset |
Makes the rendered visible if enabled.
|
getset |
Set the color at the end of the line.
|
getset |
Set the width at the end of the line.
|
get |
To check if this renderer is visible.
|
getset |
Enable this to connect the first and last positions of the line, and form a closed loop.
|
getset |
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.
|
getset |
Set this to a value greater than 0, to get rounded corners on each end of the line.
|
getset |
Set this to a value greater than 0, to get rounded corners between each segment of the line.
|
getset |
Set/get the number of vertices.
|
getset |
Enable this option to make the line display any shadows that are cast upon it.
|
getset |
Set the color at the start of the line.
|
getset |
Set the width at the start of the line.
|
getset |
Control how the Texture is applied to the line. (0-3)
|
getset |
The light probe interpolation type.
|
getset |
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.
|
getset |
Set an overall multiplier that is applied to the LineRenderer.widthCurve to get the final width of the line.