This version of Unity is unsupported.

Shader.GetGlobalInt

Switch to Manual

Declaration

public static int GetGlobalInt(string name);

Declaration

public static int GetGlobalInt(int nameID);

Parameters

nameID The name ID of the property retrieved by Shader.PropertyToID.
name The name of the property.

Description

This method is deprecated. Use GetGlobalFloat or GetGlobalInteger instead.

Calling this method is equivalent to calling GetGlobalFloat and casting the returned value to integer. See Also: GetGlobalFloat, GetGlobalInteger.