docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct AddReferenceImageJobState

    Represents the state of an asynchronous "add image job" scheduled by ScheduleAddImageWithValidationJob(NativeSlice<byte>, Vector2Int, TextureFormat, XRReferenceImage, JobHandle).

    Implements
    IEquatable<AddReferenceImageJobState>
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    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 object to compare against.

    Returns
    Type Description
    bool

    Returns true if obj is of type AddReferenceImageJobState and is considered equal to this AddReferenceImageJobState using Equals(AddReferenceImageJobState). Returns false otherwise false.

    Overrides
    ValueType.Equals(object)

    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 true if this AddReferenceImageJobState represents the same handle as other. Returns false otherwise.

    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
    ValueType.GetHashCode()

    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
    ValueType.ToString()

    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 rhs.

    AddReferenceImageJobState rhs

    The AddReferenceImageJobState to compare with lhs.

    Returns
    Type Description
    bool

    Returns true if lhs is equal to rhs. Returns false otherwise.

    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 rhs.

    AddReferenceImageJobState rhs

    The AddReferenceImageJobState to compare with lhs.

    Returns
    Type Description
    bool

    Returns true if lhs is not equal to rhs. Returns false otherwise.

    Implements

    IEquatable<T>
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)