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

VisualEffect.SetGradient

Declaration

public void SetGradient(int nameID, Gradient g);

Declaration

public void SetGradient(string name, Gradient g);

Parameters

nameID The name ID of the property retrieved by Shader.PropertyToID.
name The name of the property.
g The new gradient value.

Description

Sets a named gradient value.

Automatically changes overridden state for this property to true.