docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetId

    GetId(string)

    Get the unique Id for the key name from the shared table data.

    Declaration
    public long GetId(string key)
    Parameters
    Type Name Description
    string key

    The key whose id is being requested.

    Returns
    Type Description
    long

    The keys id value or EmptyId if one does not exist.

    GetId(string, bool)

    Get the unique Id for the key name, if one does not exist then a new entry is added.

    Declaration
    public long GetId(string key, bool addNewKey)
    Parameters
    Type Name Description
    string key
    bool addNewKey
    Returns
    Type Description
    long

    Id of the Key that exists else the Id of the newly created Key if addNewKey is True or EmptyId.

    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)