docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TimedDataBuffer

    A set of utility methods for ITimedDataBuffer<T>.

    Inheritance
    object
    TimedDataBuffer
    Namespace: Unity.LiveCapture
    Assembly: Unity.LiveCapture.dll
    Syntax
    public static class TimedDataBuffer

    Methods

    Create<T>(IInterpolator<T>, FrameRate?, Action<T>)

    Creates a new ITimedDataBuffer<T> instance.

    Declaration
    public static ITimedDataBuffer<T> Create<T>(IInterpolator<T> interpolator = null, FrameRate? frameRate = null, Action<T> sampleDiscard = null)
    Parameters
    Type Name Description
    IInterpolator<T> interpolator

    The IInterpolator<T> to use. Can be null.

    FrameRate? frameRate

    The frame rate of the samples.

    Action<T> sampleDiscard

    A callback invoked for each sample that is discarded from the buffer. This may be used to dispose samples if needed.

    Returns
    Type Description
    ITimedDataBuffer<T>

    The new ITimedDataBuffer<T> instance.

    Type Parameters
    Name Description
    T

    The datatype of the samples.

    Exceptions
    Type Condition
    ArgumentException

    Thrown if frameRate is invalid.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)