Class TextureCurve
A wrapper around AnimationCurve
to automatically bake it into a texture.
Implements
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
[Serializable]
public class TextureCurve : IDisposable
Constructors
Name | Description |
---|---|
TextureCurve(AnimationCurve, float, bool, in Vector2) | Creates a new TextureCurve from an existing |
TextureCurve(Keyframe[], float, bool, in Vector2) | Creates a new TextureCurve from an arbitrary number of keyframes. |
Properties
Name | Description |
---|---|
this[int] | Retrieves the key at index. |
length | The number of keys in the curve. |
Methods
Name | Description |
---|---|
AddKey(float, float) | Adds a new key to the curve. |
Dispose() | Cleans up the internal texture resource. |
Evaluate(float) | Evaluate a time value on the curve. |
~TextureCurve() | Finalizer. |
GetTexture() | Gets the texture representation of this curve. |
MoveKey(int, in Keyframe) | Removes the keyframe at |
Release() | Releases the internal texture resource. |
RemoveKey(int) | Removes a key. |
SetDirty() | Marks the curve as dirty to trigger a redraw of the texture the next time GetTexture() is called. |
SmoothTangents(int, float) | Smoothes the in and out tangents of the keyframe at |