This version of Unity is unsupported.
Experimental: this API is experimental and might be changed or removed in the future.

VisualEffect.SetFloat

Declaration

public void SetFloat(int nameID, float f);

Declaration

public void SetFloat(string name, float f);

Parameters

nameID The name ID of the property retrieved by Shader.PropertyToID.
name The name of the property.
f The new float value.

Description

Sets the value for a named float.

Automatically changes overridden state for this property to true.