Experimental: this API is experimental and might be changed or removed in the future.

VisualEffect.SetGradient

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

Parameters

nameID通过 Shader.PropertyToID 检索的属性的名称 ID。
name属性的名称。
gThe new gradient value.

Description

Sets a named gradient value.

Automatically changes overridden state for this property to true.