Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetInt

Sets the value of a named integer property.
Read time 1 minuteLast updated 5 days ago

Definition

SetInt(int, int)

Sets the value of a named integer property.
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.

Remarks

Automatically changes overridden state for this property to true.

SetInt(string, int)

Sets the value of a named integer property.
public void SetInt(string name, int i)

Parameters

name

The name of the property.

The new integer value.

Remarks

Automatically changes overridden state for this property to true.