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

    Class Spline

    Inheritance
    System.Object
    Spline
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: UnityEngine.Rendering.PostProcessing
    Syntax
    [Serializable]
    public sealed class Spline

    Constructors

    Spline(AnimationCurve, Single, Boolean, Vector2)

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

    Fields

    cachedData

    Declaration
    public float[] cachedData
    Field Value
    Type Description
    System.Single[]

    curve

    Declaration
    public AnimationCurve curve
    Field Value
    Type Description
    AnimationCurve

    k_Precision

    Declaration
    public const int k_Precision = 128
    Field Value
    Type Description
    System.Int32

    k_Step

    Declaration
    public const float k_Step = 0.0078125F
    Field Value
    Type Description
    System.Single

    Methods

    Cache(Int32)

    Declaration
    public void Cache(int frame)
    Parameters
    Type Name Description
    System.Int32 frame

    Evaluate(Single)

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

    Evaluate(Single, Int32)

    Declaration
    public float Evaluate(float t, int length)
    Parameters
    Type Name Description
    System.Single t
    System.Int32 length
    Returns
    Type Description
    System.Single

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.Object.GetHashCode()
    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