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

Parameters

nameIDThe ID of the property. This is the same ID that Shader.PropertyToID returns.
nameThe name of the property.
gThe new gradient value.

Description

The new gradient value.

Automatically changes overridden state for this property to true.