Struct AddReferenceImageJobState
Represents the state of an asynchronous "add image job" scheduled by ScheduleAddImageWithValidationJob(NativeSlice<Byte>, Vector2Int, TextureFormat, XRReferenceImage, JobHandle).
Inherited Members
Namespace: UnityEngine.XR.ARSubsystems
Syntax
public readonly struct AddReferenceImageJobState : IEquatable<AddReferenceImageJobState>
Properties
jobHandle
The JobHandle associated with the add job.
Declaration
public readonly JobHandle jobHandle { get; }
Property Value
Type | Description |
---|---|
Unity.Jobs.JobHandle |
status
(Read Only) The status of the add job.
Declaration
public readonly AddReferenceImageJobStatus status { get; }
Property Value
Type | Description |
---|---|
AddReferenceImageJobStatus |
Methods
AsIntPtr()
Gets the job state as an IntPtr.
Declaration
public readonly IntPtr AsIntPtr()
Returns
Type | Description |
---|---|
IntPtr | Returns this AddReferenceImageJobState as an IntPtr. |
Equals(Object)
Tests for equality.
Declaration
public override readonly bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The |
Returns
Type | Description |
---|---|
Boolean | Returns |
Overrides
Equals(AddReferenceImageJobState)
Tests for equality.
Declaration
public readonly bool Equals(AddReferenceImageJobState other)
Parameters
Type | Name | Description |
---|---|---|
AddReferenceImageJobState | other | The other AddReferenceImageJobState to compare against. |
Returns
Type | Description |
---|---|
Boolean | Returns |
Implements
GetHashCode()
Generates a hash suitable for use with containers like HashSet
and Dictionary
.
Declaration
public override readonly int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | Returns a hash code for this AddReferenceImageJobState. |
Overrides
ToString()
Provides a string representation suitable for debug logging.
Declaration
public override readonly string ToString()
Returns
Type | Description |
---|---|
String | A string representation of this AddReferenceImageJobState. |
Overrides
Operators
Equality(AddReferenceImageJobState, AddReferenceImageJobState)
Tests for equality. Same as Equals(AddReferenceImageJobState).
Declaration
public static bool operator ==(AddReferenceImageJobState lhs, AddReferenceImageJobState rhs)
Parameters
Type | Name | Description |
---|---|---|
AddReferenceImageJobState | lhs | The AddReferenceImageJobState to compare with |
AddReferenceImageJobState | rhs | The AddReferenceImageJobState to compare with |
Returns
Type | Description |
---|---|
Boolean | Returns |
Explicit(AddReferenceImageJobState to IntPtr)
Casts this AddReferenceImageJobState to an IntPtr.
Declaration
public static explicit operator IntPtr(AddReferenceImageJobState state)
Parameters
Type | Name | Description |
---|---|---|
AddReferenceImageJobState | state | The AddReferenceImageJobState to cast. |
Returns
Type | Description |
---|---|
IntPtr | Returns the IntPtr associated with this AddReferenceImageJobState. |
Inequality(AddReferenceImageJobState, AddReferenceImageJobState)
Tests for inequality. This is the negation of Equals(AddReferenceImageJobState).
Declaration
public static bool operator !=(AddReferenceImageJobState lhs, AddReferenceImageJobState rhs)
Parameters
Type | Name | Description |
---|---|---|
AddReferenceImageJobState | lhs | The AddReferenceImageJobState to compare with |
AddReferenceImageJobState | rhs | The AddReferenceImageJobState to compare with |
Returns
Type | Description |
---|---|
Boolean | Returns |