docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method DeleteKey

    DeleteKey<T>(string, SettingsScope)

    Remove a key value pair from a settings repository.

    Declaration
    public void DeleteKey<T>(string key, SettingsScope scope = SettingsScope.Project)
    Parameters
    Type Name Description
    string key

    The key to remove.

    SettingsScope scope

    Which scope should be searched for matching key.

    Type Parameters
    Name Description
    T

    The type that this key is pointing to.

    DeleteKey<T>(string, string, SettingsScope)

    Remove a key value pair from a settings repository.

    Declaration
    public void DeleteKey<T>(string key, string repositoryName, SettingsScope scope = SettingsScope.Project)
    Parameters
    Type Name Description
    string key

    The key to remove.

    string repositoryName

    The repository name to match.

    SettingsScope scope

    Which scope should be searched for matching key.

    Type Parameters
    Name Description
    T

    The type that this key is pointing to.

    DeleteKey<T, K>(string, string)

    Remove a key value pair from a settings repository.

    Declaration
    public void DeleteKey<T, K>(string key, string repositoryName = null) where K : ISettingsRepository
    Parameters
    Type Name Description
    string key

    The key to remove.

    string repositoryName

    If provided, only repositories with a matching name will be searched for the key.

    Type Parameters
    Name Description
    T

    The type that this key is pointing to.

    K

    Only repositories of type K will be searched for matching keys.

    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)