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

パラメーター

nameIDThe ID of the property. This is the same ID that Shader.PropertyToID returns.
nameプロパティーの名前
gThe new gradient value.

説明

The new gradient value.

Automatically changes overridden state for this property to true.