docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct TimedDataSourceRef

    A struct that holds a serializable reference to a ITimedDataSource.

    Implements
    ISerializationCallbackReceiver
    Namespace: Unity.LiveCapture
    Assembly: Unity.LiveCapture.dll
    Syntax
    [Serializable]
    public struct TimedDataSourceRef : ISerializationCallbackReceiver

    Constructors

    TimedDataSourceRef(ITimedDataSource)

    Create a serializable reference to a ITimedDataSource.

    Declaration
    public TimedDataSourceRef(ITimedDataSource source)
    Parameters
    Type Name Description
    ITimedDataSource source

    The source to reference.

    Methods

    Equals(object)

    Returns a value indicating whether this instance is equal to a specified object.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    An object to compare with this instance.

    Returns
    Type Description
    bool

    true if obj is an instance of ITimedDataSource and equals the value of this instance; otherwise, false.

    Overrides
    ValueType.Equals(object)

    Equals(TimedDataSourceRef)

    Returns a value indicating whether this instance is equal to a specified ITimedDataSource.

    Declaration
    public bool Equals(TimedDataSourceRef other)
    Parameters
    Type Name Description
    TimedDataSourceRef other

    A value to compare with this instance.

    Returns
    Type Description
    bool

    true if other has the same value as this instance; otherwise, false.

    GetHashCode()

    Returns the hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    The hash code for this instance.

    Overrides
    ValueType.GetHashCode()

    Resolve()

    Get the referenced source.

    Declaration
    public ITimedDataSource Resolve()
    Returns
    Type Description
    ITimedDataSource

    The referenced source, or null if the source is not registered with the TimedDataSourceManager.

    Operators

    operator ==(TimedDataSourceRef, TimedDataSourceRef)

    Determines whether two specified instances of ITimedDataSource are equal.

    Declaration
    public static bool operator ==(TimedDataSourceRef a, TimedDataSourceRef b)
    Parameters
    Type Name Description
    TimedDataSourceRef a

    The first instance to compare.

    TimedDataSourceRef b

    The second instance to compare.

    Returns
    Type Description
    bool

    true if a and b represent the same value; otherwise, false.

    operator !=(TimedDataSourceRef, TimedDataSourceRef)

    Determines whether two specified instances of ITimedDataSource are not equal.

    Declaration
    public static bool operator !=(TimedDataSourceRef a, TimedDataSourceRef b)
    Parameters
    Type Name Description
    TimedDataSourceRef a

    The first instance to compare.

    TimedDataSourceRef b

    The second instance to compare.

    Returns
    Type Description
    bool

    true if a and b do not represent the same value; otherwise, false.

    Implements

    ISerializationCallbackReceiver
    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)