Summary
Sets a permutation of the material pass parameter. Cloning the Material
if required.
Syntax
public static void SetMaterialParameter<T>(this ModelComponent modelComponent, PermutationParameterKey<T> parameter, T value, int materialIndex = 0, int passIndex = 0)
Type Parameters
Name |
Description |
T |
The type of value. |
Parameters
Name |
Type |
Description |
modelComponent |
ModelComponent |
The ModelComponent to update material parameter on. |
parameter |
PermutationParameterKey<T> |
The parameter to update. |
value |
T |
The value. |
materialIndex |
int |
The index of the material to update. Default is 0. |
passIndex |
int |
The index of the pass of the material to update. Default is 0. |
Return Value