Struct TimedDataSourceRef
A struct that holds a serializable reference to a ITimedDataSource.
Namespace: Unity.LiveCapture
Syntax
[Serializable]
public struct TimedDataSourceRef : IEquatable<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 |
|---|---|
| Boolean | true if |
Overrides
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 |
|---|---|
| Boolean | true if |
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| Int32 | The hash code for this instance. |
Overrides
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
Equality(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 |
|---|---|
| Boolean |
Inequality(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 |
|---|---|
| Boolean | true if |
Explicit Interface Implementations
ISerializationCallbackReceiver.OnAfterDeserialize()
Receives a callback after Unity deserializes your object.
Declaration
void ISerializationCallbackReceiver.OnAfterDeserialize()
Implements
ISerializationCallbackReceiver.OnBeforeSerialize()
Receives a callback before Unity serializes your object.
Declaration
void ISerializationCallbackReceiver.OnBeforeSerialize()