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