This version of Unity is unsupported.

MaterialPropertyBlock.SetInt

Declaration

public void SetInt(int nameID, int value);

Declaration

public void SetInt(string name, int value);

Parameters

name The name of the property.
nameID The name ID of the property retrieved by Shader.PropertyToID.
value The int value to set.

Description

This method is deprecated. Use SetFloat or SetInteger instead.

See Also: SetFloat.