docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface ISynchronizer

    Manages a collection of ITimedDataSource instances for the purpose of coordinating their respective data to be presented in a temporally coherent manner.

    Namespace: Unity.LiveCapture
    Assembly: Unity.LiveCapture.dll
    Syntax
    public interface ISynchronizer

    Properties

    DataSourceCount

    Get the number of timed data sources in the synchronization group.

    Declaration
    int DataSourceCount { get; }
    Property Value
    Type Description
    int

    PresentTime

    The time to synchronize to for the current frame.

    Declaration
    FrameTimeWithRate? PresentTime { get; }
    Property Value
    Type Description
    FrameTimeWithRate?
    Remarks

    If no TimecodeSource is set, the value is null.

    TimecodeSource

    The source of the timecodes used for synchronization.

    Declaration
    ITimecodeSource TimecodeSource { get; set; }
    Property Value
    Type Description
    ITimecodeSource

    Methods

    AddDataSource(ITimedDataSource)

    Add a timed data source to the synchronization group.

    Declaration
    bool AddDataSource(ITimedDataSource source)
    Parameters
    Type Name Description
    ITimedDataSource source

    The timed data source to add.

    Returns
    Type Description
    bool

    true if the source is in the synchronization group; otherwise, false.

    GetDataSource(int)

    Get the timed data source at the specified index.

    Declaration
    ITimedDataSource GetDataSource(int index)
    Parameters
    Type Name Description
    int index

    The index of the timed data source.

    Returns
    Type Description
    ITimedDataSource

    The timed data source at the index; null if the index is invalid.

    RemoveDataSource(ITimedDataSource)

    Remove a timed data source from the synchronization group.

    Declaration
    bool RemoveDataSource(ITimedDataSource source)
    Parameters
    Type Name Description
    ITimedDataSource source

    The timed data source to remove.

    Returns
    Type Description
    bool

    true if the source was removed from the synchronization group; otherwise, false.

    Update()

    Perform synchronized update on synchronized group.

    Declaration
    void Update()
    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)