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.