SetAlphaKeys(ReadOnlySpan<GradientAlphaKey>)
Setup gradient with an array of alpha keys.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public void SetAlphaKeys(ReadOnlySpan<GradientAlphaKey> keys)
Parameters
Array of alpha keys.
Remarks
Note that the alpha keys will be automatically sorted by time value and that it is ensured to always have a minimum of 2 alpha keys.