文档

Unity Engine

Unity Engine

GetGlobalFloat

Gets a global float property for all shaders previously set using Shader.SetGlobalFloat.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule

GetGlobalFloat(string)

Gets a global float property for all shaders previously set using Shader.SetGlobalFloat.
public static float GetGlobalFloat(string name)

Parameters

name

The name of the property.

Returns

Type

Description

float

GetGlobalFloat(int)

Gets a global float property for all shaders previously set using Shader.SetGlobalFloat.
public static float GetGlobalFloat(int nameID)

Parameters

nameID

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

Returns

Type

Description

float