Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

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

CommandBuffer.SetGlobalFloat

Switch to Manual
public function SetGlobalFloat(name: string, value: float): void;
public function SetGlobalFloat(nameID: int, value: float): void;

Parameters

Description

Add a "set global shader float property" command.

When the command buffer will be executed, a global shader float property will be set at this point. The effect is as if Shader.SetGlobalFloat was called.