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

    Struct TimecodeSourceRef

    A struct that holds a serializable reference to a ITimecodeSource.

    Namespace: Unity.LiveCapture
    Syntax
    [Serializable]
    public struct TimecodeSourceRef : IEquatable<TimecodeSourceRef>, ISerializationCallbackReceiver

    Constructors

    TimecodeSourceRef(ITimecodeSource)

    Create a serializable reference to a ITimecodeSource.

    Declaration
    public TimecodeSourceRef(ITimecodeSource source)
    Parameters
    Type Name Description
    ITimecodeSource 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
    Boolean

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

    Overrides
    ValueType.Equals(Object)

    Equals(TimecodeSourceRef)

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

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

    A value to compare with this instance.

    Returns
    Type Description
    Boolean

    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
    Int32

    The hash code for this instance.

    Overrides
    ValueType.GetHashCode()

    Resolve()

    Get the referenced source.

    Declaration
    public ITimecodeSource Resolve()
    Returns
    Type Description
    ITimecodeSource

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

    Operators

    Equality(TimecodeSourceRef, TimecodeSourceRef)

    Determines whether two specified instances of TimecodeSourceRef are equal.

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

    The first instance to compare.

    TimecodeSourceRef b

    The second instance to compare.

    Returns
    Type Description
    Boolean

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

    Inequality(TimecodeSourceRef, TimecodeSourceRef)

    Determines whether two specified instances of TimecodeSourceRef are not equal.

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

    The first instance to compare.

    TimecodeSourceRef b

    The second instance to compare.

    Returns
    Type Description
    Boolean

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

    Explicit Interface Implementations

    ISerializationCallbackReceiver.OnAfterDeserialize()

    Receives a callback after Unity deserializes your object.

    Declaration
    void ISerializationCallbackReceiver.OnAfterDeserialize()
    Implements
    ISerializationCallbackReceiver.OnAfterDeserialize()

    ISerializationCallbackReceiver.OnBeforeSerialize()

    Receives a callback before Unity serializes your object.

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