Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

Shader.SetGlobalInt

static function SetGlobalInt(propertyName: string, value: int): void;
static void SetGlobalInt(string propertyName, int value);
static def SetGlobalInt(propertyName as string, value as int) as void
static function SetGlobalInt(nameID: int, value: int): void;
static void SetGlobalInt(int nameID, int value);
static def SetGlobalInt(nameID as int, value as int) as void

Description

Sets a global int property for all shaders.

Internally float and integer shader properties are treated exactly the same, so this function is just an alias to SetGlobalFloat.