기술 자료

Unity Engine

Unity Engine

SetGlobalFloat

Add a "set global shader float property" command.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

SetGlobalFloat(int, float)

Add a "set global shader float property" command.
public void SetGlobalFloat(int nameID, float value)

Parameters

nameID


value

Remarks

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.

SetGlobalFloat(string, float)

Add a "set global shader float property" command.
public void SetGlobalFloat(string name, float value)

Parameters

name


value

Remarks

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.