Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetInt

Use this method to set the value of an integer with the name you pass in.
Read time 1 minuteLast updated 8 days ago

Definition

SetInt(int, int)

Use this method to set the value of an integer with the name you pass in.
public void SetInt(int nameID, int i)

Parameters

nameID

The ID of the property. This is the same ID that Shader.PropertyToID returns.

The new integer value.

SetInt(string, int)

Use this method to set the value of an integer with the name you pass in.
public void SetInt(string name, int i)

Parameters

name

The name of the property.

The new integer value.