Struct TimecodeSourceRef
A struct that holds a serializable reference to a ITimecode
Implements
Namespace: Unity.LiveCapture
Assembly: Unity.LiveCapture.dll
Syntax
[Serializable]
public struct TimecodeSourceRef : ISerializationCallbackReceiver
Constructors
TimecodeSourceRef(ITimecodeSource)
Create a serializable reference to a ITimecode
Declaration
public TimecodeSourceRef(ITimecodeSource source)
Parameters
Type | Name | Description |
---|---|---|
ITimecode |
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 |
Overrides
Equals(TimecodeSourceRef)
Returns a value indicating whether this instance is equal to a specified Timecode
Declaration
public bool Equals(TimecodeSourceRef other)
Parameters
Type | Name | Description |
---|---|---|
Timecode |
other | A value to compare with this instance. |
Returns
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | The hash code for this instance. |
Overrides
Resolve()
Get the referenced source.
Declaration
public ITimecodeSource Resolve()
Returns
Type | Description |
---|---|
ITimecode |
The referenced source, or null if the source is not registered with the Timecode |
Operators
operator ==(TimecodeSourceRef, TimecodeSourceRef)
Determines whether two specified instances of Timecode
Declaration
public static bool operator ==(TimecodeSourceRef a, TimecodeSourceRef b)
Parameters
Type | Name | Description |
---|---|---|
Timecode |
a | The first instance to compare. |
Timecode |
b | The second instance to compare. |
Returns
operator !=(TimecodeSourceRef, TimecodeSourceRef)
Determines whether two specified instances of Timecode
Declaration
public static bool operator !=(TimecodeSourceRef a, TimecodeSourceRef b)
Parameters
Type | Name | Description |
---|---|---|
Timecode |
a | The first instance to compare. |
Timecode |
b | The second instance to compare. |