docs.unity.cn
    Show / Hide Table of Contents

    Class TimedDataBuffer

    A set of utility methods for ITimedDataBuffer<T>.

    Inheritance
    Object
    TimedDataBuffer
    Namespace: Unity.LiveCapture
    Syntax
    public static class TimedDataBuffer

    Methods

    Create<T>(IInterpolator<T>, Nullable<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.

    Nullable<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.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, May 17, 2023