Version: 5.6 (switch to 2017.1b)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Shader.GetGlobalInt

Switch to Manual
public static int GetGlobalInt(string name);
public static int GetGlobalInt(int nameID);

Description

Gets a global int property for all shaders previously set using SetGlobalInt.

It is only an alias to GetGlobalFloat that the float value is cast to integer.

See Also: GetGlobalFloat.