SetGradient
Sets the value of a named Gradient property.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: UnityEngine.VFX
- Assembly: UnityEngine.VFXModule
SetGradient(int, Gradient)
Sets the value of a named Gradient property.
public void SetGradient(int nameID, Gradient g)
Parameters
The ID of the property. This is the same ID that Shader.PropertyToID returns.
The new Gradient value.
Remarks
Automatically changes overridden state for this property to true.
SetGradient(string, Gradient)
Sets the value of a named Gradient property.
public void SetGradient(string name, Gradient g)
Parameters
Remarks
Automatically changes overridden state for this property to true.