|
| proto bool | SetParam (string paramName, void value) |
| | set param of material by string name
|
| |
| proto external void | ResetParam (string paramName) |
| | reset param of material to default value
|
| |
| proto external int | GetParamIndex (string paramName) |
| | set param index for faster access to material properties
|
| |
| proto void | SetParamByIndex (int paramIndex, void value) |
| | Set parameter of material by index.
|
| |
| proto void | GetName (out string name) |
| | material name
|
| |
| proto external ref Managed | Clone () |
| | Return shallow copy of object, or null if it is not allowed (not public constructor)
|
| |
◆ Create()
◆ GetMaterial()
Get material, must exist in internal cache.
- Parameters
-
◆ GetName()
| proto 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 param index for faster access to material properties
- Parameters
-
| paramName | name of parameter |
- Returns
- parameter index
◆ ResetParam()
| proto external void Material.ResetParam |
( |
string | paramName | ) |
|
reset param of material to default value
- Parameters
-
| paramName | name of parameter |
◆ SetParam()
| proto bool Material.SetParam |
( |
string | paramName, |
|
|
void | value ) |
set param of material by string name
- Parameters
-
| paramName | name of parameter |
| value | value |
◆ SetParamByIndex()
| proto 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