docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AddKey

    AddKey(string, long)

    Adds a new key to this SharedTableData if one does not already exists with the same id.

    Declaration
    public SharedTableData.SharedTableEntry AddKey(string key, long id)
    Parameters
    Type Name Description
    string key

    The unique key name to assign to the entry.

    long id

    The unique id to assign to the key.

    Returns
    Type Description
    SharedTableData.SharedTableEntry

    The new entry or null if an entry already exists with the same id.

    AddKey(string)

    Adds a new key to this SharedTableData with a default name. If the name already exists then a unique version is generated based on the provided name.

    Declaration
    public SharedTableData.SharedTableEntry AddKey(string key = null)
    Parameters
    Type Name Description
    string key

    The name for the new Key.

    Returns
    Type Description
    SharedTableData.SharedTableEntry
    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)