docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct QueryToken

    Represents a token of a query string.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEditor.Search
    Assembly: com.unity.quicksearch.dll
    Syntax
    public readonly struct QueryToken

    Constructors

    QueryToken(string, int)

    Creates a token from a string and a position.

    Declaration
    public QueryToken(string text, int position)
    Parameters
    Type Name Description
    string text

    The value of the token.

    int position

    The position of the token in the entire query string.

    QueryToken(string, int, int)

    Creates a token from a string, a position and a length.

    Declaration
    public QueryToken(string text, int position, int length)
    Parameters
    Type Name Description
    string text

    The value of the token.

    int position

    The position of the token in the entire query string.

    int length

    The length of the token.

    Properties

    length

    The length of the token. Can be different than the length of the text.

    Declaration
    public int length { get; }
    Property Value
    Type Description
    int

    position

    The position of the token in the entire query string.

    Declaration
    public int position { get; }
    Property Value
    Type Description
    int

    text

    The text representing the token.

    Declaration
    public string text { get; }
    Property Value
    Type Description
    string
    In This Article
    Back to top
    Copyright © 2025 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)