Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

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

Shader.SetGlobalInt

public static function SetGlobalInt(propertyName: string, value: int): void;
public static function SetGlobalInt(nameID: int, value: int): 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.