|
proto external bool | SetParam (string paramName, void value) |
| set parametr of material by string name
|
|
proto external void | ResetParam (string paramName) |
| reset parametr of material to default value
|
|
proto external int | GetParamIndex (string paramName) |
| set parametr index for faster access to material properties
|
|
proto external void | SetParamByIndex (int paramIndex, void value) |
| Set parameter of material by index.
|
|
proto external void | Release () |
| release material (created be CreateMaterial)
|
|
proto external void | GetName (out string name) |
| material name
|
|
proto string | ToString () |
|
◆ Create()
◆ GetMaterial()
Get material, must exist in internal cache.
- Parameters
-
◆ GetName()
proto external void Material.GetName |
( |
out string |
name | ) |
|
◆ GetOrLoadMaterial()
get material or load it of it doesn't exist in internal cache
- Parameters
-
matName | material resource |
flags | material creation flags, use 0 |
◆ GetParamIndex()
proto external int Material.GetParamIndex |
( |
string |
paramName | ) |
|
set parametr index for faster access to material properties
- Parameters
-
paramName | name of parameter |
- Returns
- parameter index
◆ Release()
proto external void Material.Release |
( |
| ) |
|
release material (created be CreateMaterial)
◆ ResetParam()
proto external void Material.ResetParam |
( |
string |
paramName | ) |
|
reset parametr of material to default value
- Parameters
-
paramName | name of parameter |
◆ SetParam()
proto external bool Material.SetParam |
( |
string |
paramName, |
|
|
void |
value |
|
) |
| |
set parametr of material by string name
- Parameters
-
paramName | name of parameter |
value | value |
◆ SetParamByIndex()
proto external void Material.SetParamByIndex |
( |
int |
paramIndex, |
|
|
void |
value |
|
) |
| |
Set parameter of material by index.
The documentation for this interface was generated from the following file:
- Core/generated/Visual/Material.c