Material.SetInt

void SetInt(string name, int value)

Sets a shader parameter with the given name to the provided value. If no parameter is found, nothing happens, and the value is not set!

   
string name Name of the shader parameter.
int value New value for the parameter.
void SetInt(string name, int value1, int value2)

Sets a shader parameter with the given name to the provided value. If no parameter is found, nothing happens, and the value is not set!

   
string name Name of the shader parameter.
int value1 New value for the parameter.
int value2 New value for the parameter.
void SetInt(string name, int value1, int value2, int value3)

Sets a shader parameter with the given name to the provided value. If no parameter is found, nothing happens, and the value is not set!

   
string name Name of the shader parameter.
int value1 New value for the parameter.
int value2 New value for the parameter.
int value3 New value for the parameter.
void SetInt(string name, int value1, int value2, int value3, int value4)

Sets a shader parameter with the given name to the provided value. If no parameter is found, nothing happens, and the value is not set!

   
string name Name of the shader parameter.
int value1 New value for the parameter.
int value2 New value for the parameter.
int value3 New value for the parameter.
int value4 New value for the parameter.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!