Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

Shader.GetGlobalFloat

Switch to Manual

Declaration

public static float GetGlobalFloat(string name);

Declaration

public static float GetGlobalFloat(int nameID);

Parameters

nameID The name ID of the property retrieved by Shader.PropertyToID.
name The name of the property.

Description

Gets a global float property for all shaders previously set using SetGlobalFloat.