文档

Unity Engine

Download Unity

Unity Engine

SetFloat

Writes a float property.
阅读时间1 分钟最后更新于 1 天前

Definition

SetFloat(int, float)

Writes a float property.
public void SetFloat(int nameID, float value)

Parameters

nameID

The property ID, from Shader.PropertyToID.

value

The value that the shader reads.

SetFloat(string, float)

Writes a float property.
public void SetFloat(string name, float value)

Parameters

name

The property name.

value

The value that the shader reads.