Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetFloat

Sets the value of a named float property.
Read time 1 minuteLast updated 7 days ago

Definition

SetFloat(int, float)

Sets the value of a named float property.
public void SetFloat(int nameID, float f)

Parameters

nameID

The ID of the property. This is the same ID that Shader.PropertyToID returns.

The new float value.

Remarks

Automatically changes overridden state for this property to true.

SetFloat(string, float)

Sets the value of a named float property.
public void SetFloat(string name, float f)

Parameters

name

The name of the property.

The new float value.

Remarks

Automatically changes overridden state for this property to true.