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

VisualEffect.SetGradient

public void SetGradient(int nameID, Gradient g);
public void SetGradient(string name, Gradient g);

Parameters

nameIDThe name ID of the property retrieved by Shader.PropertyToID.
nameThe name of the property.
gThe new gradient value.

Description

Sets a named gradient value.

Automatically changes overridden state for this property to true.