docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method FindKeyId

    FindKeyId(string, bool)

    Returns the key with the matching name from the SharedTableData, if one exists.

    Declaration
    protected long FindKeyId(string key, bool addKey)
    Parameters
    Type Name Description
    string key

    The key to search for.

    bool addKey

    Should a new key be added if one can not be found?

    Returns
    Type Description
    long

    The found key or null if one could not be found.

    Exceptions
    Type Condition
    Exception

    Thrown if the SharedTableData is null.

    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)