docs.unity3d.com
    Show / Hide Table of Contents

    Struct QueryToken

    Represents a token of a query string.

    Namespace: UnityEditor.Search
    Syntax
    public struct QueryToken

    Constructors

    QueryToken(String, Int32)

    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.

    Int32 position

    The position of the token in the entire query string.

    QueryToken(String, Int32, Int32)

    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.

    Int32 position

    The position of the token in the entire query string.

    Int32 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
    Int32

    position

    The position of the token in the entire query string.

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

    text

    The text representing the token.

    Declaration
    public string text { get; }
    Property Value
    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