docs.unity3d.com
    目次を表示する/隠す

    Class TimecodeSourceState

    A class which may be used to manage the timecode updates for an ITimecodeSource.

    Inheritance
    Object
    TimecodeSourceState
    Namespace: Unity.LiveCapture
    Syntax
    public class TimecodeSourceState : IDisposable
    Remarks

    This handles updating the timecode at the best point in the update loop, and ensures that the timecode source is genlocked when an ISyncProvider is active.

    Constructors

    TimecodeSourceState(Func<Nullable<FrameTimeWithRate>>)

    Creates a new TimecodeSourceState instance.

    Declaration
    public TimecodeSourceState(Func<FrameTimeWithRate?> pollFrameTime)
    Parameters
    Type Name Description
    Func<Nullable<FrameTimeWithRate>> pollFrameTime

    A function that polls the timecode source at the start of the frame for the latest timecode. Return null if there is no timecode available.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if pollFrameTime is null.

    Properties

    CurrentTime

    The frame time and frame rate to use for the current frame.

    Declaration
    public FrameTimeWithRate? CurrentTime { get; }
    Property Value
    Type Description
    Nullable<FrameTimeWithRate>

    Methods

    Dispose()

    Disposes this instance.

    Declaration
    public void Dispose()
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)