docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetSettingsPath

    GetSettingsPath(string, string)

    Get a path for a settings file relative to the calling assembly package directory.

    Declaration
    public static string GetSettingsPath(string packageName, string name = "Settings")
    Parameters
    Type Name Description
    string packageName

    The name of the package requesting this setting.

    string name

    An optional name for the settings file. Default is "Settings."

    Returns
    Type Description
    string

    A package-scoped path to the settings file within Project Settings.

    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)