Class TextureCurve | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class TextureCurve

    Inheritance
    System.Object
    TextureCurve
    Namespace: UnityEngine.Rendering
    Syntax
    [Serializable]
    public class TextureCurve : IDisposable

    Constructors

    TextureCurve(AnimationCurve, Single, Boolean, Vector2)

    Declaration
    public TextureCurve(AnimationCurve baseCurve, float zeroValue, bool loop, in Vector2 bounds)
    Parameters
    Type Name Description
    AnimationCurve baseCurve
    System.Single zeroValue
    System.Boolean loop
    Vector2 bounds

    TextureCurve(Keyframe[], Single, Boolean, Vector2)

    Declaration
    public TextureCurve(Keyframe[] keys, float zeroValue, bool loop, in Vector2 bounds)
    Parameters
    Type Name Description
    Keyframe[] keys
    System.Single zeroValue
    System.Boolean loop
    Vector2 bounds

    Properties

    Item[Int32]

    Declaration
    public Keyframe this[int index] { get; }
    Parameters
    Type Name Description
    System.Int32 index
    Property Value
    Type Description
    Keyframe

    length

    Declaration
    public int length { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    AddKey(Single, Single)

    Declaration
    public int AddKey(float time, float value)
    Parameters
    Type Name Description
    System.Single time
    System.Single value
    Returns
    Type Description
    System.Int32

    Dispose()

    Declaration
    public void Dispose()

    Evaluate(Single)

    Declaration
    public float Evaluate(float time)
    Parameters
    Type Name Description
    System.Single time
    Returns
    Type Description
    System.Single

    Finalize()

    Declaration
    protected void Finalize()

    GetTexture()

    Declaration
    public Texture2D GetTexture()
    Returns
    Type Description
    Texture2D

    MoveKey(Int32, Keyframe)

    Declaration
    public int MoveKey(int index, in Keyframe key)
    Parameters
    Type Name Description
    System.Int32 index
    Keyframe key
    Returns
    Type Description
    System.Int32

    RemoveKey(Int32)

    Declaration
    public void RemoveKey(int index)
    Parameters
    Type Name Description
    System.Int32 index

    SetDirty()

    Declaration
    public void SetDirty()

    SmoothTangents(Int32, Single)

    Declaration
    public void SmoothTangents(int index, float weight)
    Parameters
    Type Name Description
    System.Int32 index
    System.Single weight
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023