SetInteger
Sets a named integer value.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
SetInteger(string, int)
Sets a named integer value.
public void SetInteger(string name, int value)
Parameters
Remarks
When setting values on materials using the Standard Shader, you should be aware that you may need to use Material.EnableKeyword to enable features of the shader that were not previously in use. For more detail, read Accessing Materials via Script.
SetInteger(int, int)
Sets a named integer value.
public void SetInteger(int nameID, int value)
Parameters
Remarks
When setting values on materials using the Standard Shader, you should be aware that you may need to use Material.EnableKeyword to enable features of the shader that were not previously in use. For more detail, read Accessing Materials via Script.