Struct Curve | Kinematica | 0.7.0-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Struct Curve

    Namespace: Unity.Curves
    Syntax
    public struct Curve : IDisposable

    Constructors

    Curve(AnimationCurve, Allocator)

    Declaration
    public Curve(AnimationCurve c, Allocator alloc)
    Parameters
    Type Name Description
    AnimationCurve c
    Allocator alloc

    Curve(Keyframe[], Allocator)

    Declaration
    public Curve(Keyframe[] keyframes, Allocator alloc)
    Parameters
    Type Name Description
    Keyframe[] keyframes
    Allocator alloc

    Curve(NativeArray<Keyframe>)

    Declaration
    public Curve(NativeArray<Keyframe> keyframes)
    Parameters
    Type Name Description
    NativeArray<Keyframe> keyframes

    Curve(NativeArray<Keyframe>, Allocator)

    Declaration
    public Curve(NativeArray<Keyframe> keyframes, Allocator alloc)
    Parameters
    Type Name Description
    NativeArray<Keyframe> keyframes
    Allocator alloc

    Curve(Int32, Allocator)

    Declaration
    public Curve(int size, Allocator alloc)
    Parameters
    Type Name Description
    Int32 size
    Allocator alloc

    Curve(Curve)

    Declaration
    public Curve(Curve other)
    Parameters
    Type Name Description
    Curve other

    Curve(Curve, Allocator)

    Declaration
    public Curve(Curve other, Allocator alloc)
    Parameters
    Type Name Description
    Curve other
    Allocator alloc

    Fields

    Keys

    Declaration
    public readonly NativeArray<Keyframe> Keys
    Field Value
    Type Description
    NativeArray<Keyframe>

    Properties

    Duration

    Declaration
    public float Duration { get; }
    Property Value
    Type Description
    Single

    Length

    Declaration
    public int Length { get; }
    Property Value
    Type Description
    Int32

    Methods

    Dispose()

    Declaration
    public void Dispose()

    Evaluate(Single)

    Declaration
    public float Evaluate(float time)
    Parameters
    Type Name Description
    Single time
    Returns
    Type Description
    Single
    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