Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

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

Shader.SetGlobalInt

Switch to Manual
public static function SetGlobalInt(propertyName: string, value: int): void;
public static function SetGlobalInt(nameID: int, value: int): void;

Parameters

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.