docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetRepository

    GetRepository(SettingsScope)

    Find a settings repository that matches the requested scope.

    Declaration
    public ISettingsRepository GetRepository(SettingsScope scope)
    Parameters
    Type Name Description
    SettingsScope scope

    The scope of the settings repository to match.

    Returns
    Type Description
    ISettingsRepository

    An ISettingsRepository instance that is implementing the requested scope. May return null if no matching repository is found.

    GetRepository(SettingsScope, string)

    Find a settings repository that matches the requested scope and name.

    Declaration
    public ISettingsRepository GetRepository(SettingsScope scope, string name)
    Parameters
    Type Name Description
    SettingsScope scope

    The scope of the settings repository to match.

    string name

    The name of the ISettingsRepository to match.

    Returns
    Type Description
    ISettingsRepository

    An ISettingsRepository instance that is implementing the requested scope, and matches name. May return null if no matching repository is found.

    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)