docs.unity3d.com
    Show / Hide Table of Contents

    Struct QueryMatchID

    Identifies a query and an instance of a match for this query

    Namespace: Unity.MARS.Query
    Syntax
    public struct QueryMatchID : IEquatable<QueryMatchID>

    Fields

    NullQuery

    Null value for empty query match id

    Declaration
    public static QueryMatchID NullQuery
    Field Value
    Type Description
    QueryMatchID

    Properties

    matchID

    Identifies an instance of a query match. This is distinct from the ID of the data that fulfills the query.

    Declaration
    public int matchID { get; }
    Property Value
    Type Description
    Int32

    queryID

    Identifies the query itself

    Declaration
    public int queryID { get; }
    Property Value
    Type Description
    Int32

    Methods

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean

    Equals(QueryMatchID)

    Declaration
    public bool Equals(QueryMatchID id)
    Parameters
    Type Name Description
    QueryMatchID id
    Returns
    Type Description
    Boolean

    Generate()

    Generate a new query match id

    Declaration
    public static QueryMatchID Generate()
    Returns
    Type Description
    QueryMatchID

    The newly generated query match id

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    IsNullQuery()

    Checks whether this query ID has actually been initialized

    Declaration
    public bool IsNullQuery()
    Returns
    Type Description
    Boolean

    NextMatch()

    Next match id

    Declaration
    public QueryMatchID NextMatch()
    Returns
    Type Description
    QueryMatchID

    The newly generated query match id

    SameQuery(QueryMatchID)

    Checks whether this ID refers to the same query as another ID

    Declaration
    public bool SameQuery(QueryMatchID otherID)
    Parameters
    Type Name Description
    QueryMatchID otherID

    QueryMatchID to compare against

    Returns
    Type Description
    Boolean

    True if both IDs refer to the same query, false otherwise

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023