Sinespace Client
2023.2.17543
Client-side scripting for Sinespace
|
Public Member Functions | |
SMaterial | Instantiate () |
Return a new SMaterial from old. More... | |
void | SetFloat (string key, float value) |
Set a named float value. More... | |
float | GetFloat (string key) |
Get a named float value. More... | |
void | SetColor (string key, SColor color) |
Set a named color value. More... | |
void | SetColor (string key, float r, float g, float b, float a) |
Set a named color value. More... | |
SColor | GetColor (string key) |
Get a named color value. More... | |
void | SetColor32 (string key, byte r, byte g, byte b, byte a) |
Set a named color value in color32 More... | |
void | SetInt (string key, int value) |
Set a named int value. More... | |
int | GetInt (string key) |
Get a named int value. More... | |
void | SetTexture (string key, SResource value) |
Set a named texture. More... | |
SResource | GetTexture (string key) |
Get a named texture. More... | |
void | SetTextureOffset (string key, float x, float y) |
Set the placement offset of texture property name. More... | |
void | SetTextureScale (string key, float x, float y) |
void | SetVector (string key, SVector value) |
Set named vector value. More... | |
Properties | |
string | Name [get, set] |
Returns the name of current SMaterial More... | |
string | Shader [get] |
Return the shader name of current SMaterial More... | |
int | RenderQueue [get, set] |
Render queue of this material More... | |
SColor SineSpace.Scripting.Types.SMaterial.GetColor | ( | string | key | ) |
Get a named color value.
key | The name of key. |
float SineSpace.Scripting.Types.SMaterial.GetFloat | ( | string | key | ) |
Get a named float value.
key | The name of key. |
int SineSpace.Scripting.Types.SMaterial.GetInt | ( | string | key | ) |
Get a named int value.
key | The name of key. |
SResource SineSpace.Scripting.Types.SMaterial.GetTexture | ( | string | key | ) |
Get a named texture.
key | The name of key |
value | Value to set |
SMaterial SineSpace.Scripting.Types.SMaterial.Instantiate | ( | ) |
Return a new SMaterial from old.
void SineSpace.Scripting.Types.SMaterial.SetColor | ( | string | key, |
float | r, | ||
float | g, | ||
float | b, | ||
float | a | ||
) |
Set a named color value.
key | The name of key. |
r | red |
g | green |
b | blue |
a | alpha |
void SineSpace.Scripting.Types.SMaterial.SetColor | ( | string | key, |
SColor | color | ||
) |
Set a named color value.
key | The name of key. |
color | The color you want to use. |
void SineSpace.Scripting.Types.SMaterial.SetColor32 | ( | string | key, |
byte | r, | ||
byte | g, | ||
byte | b, | ||
byte | a | ||
) |
Set a named color value in color32
key | The name of key. |
r | red |
g | green |
b | blue |
a | alpha |
void SineSpace.Scripting.Types.SMaterial.SetFloat | ( | string | key, |
float | value | ||
) |
Set a named float value.
key | The name of key |
value | Value to set |
void SineSpace.Scripting.Types.SMaterial.SetInt | ( | string | key, |
int | value | ||
) |
Set a named int value.
key | The name of key |
value | Value to set |
void SineSpace.Scripting.Types.SMaterial.SetTexture | ( | string | key, |
SResource | value | ||
) |
Set a named texture.
key | The name of key |
value | Value to set |
void SineSpace.Scripting.Types.SMaterial.SetTextureOffset | ( | string | key, |
float | x, | ||
float | y | ||
) |
Set the placement offset of texture property name.
key | The name of key |
value | Value to set |
void SineSpace.Scripting.Types.SMaterial.SetTextureScale | ( | string | key, |
float | x, | ||
float | y | ||
) |
Set the placement offset of texture property name.
key | The name of key |
value | Value to set |
void SineSpace.Scripting.Types.SMaterial.SetVector | ( | string | key, |
SVector | value | ||
) |
Set named vector value.
key | The name of key |
value | Value to set |
|
getset |
Returns the name of current SMaterial
|
getset |
Render queue of this material
|
get |
Return the shader name of current SMaterial