Documentation

Unity Engine

Download Unity

Unity Engine

SetFloat

Writes a float property.
Read time 1 minuteLast updated 6 days ago

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.