docs.unity3d.com
    Show / Hide Table of Contents

    Property appConfig

    appConfig

    Retrieves the RuntimeConfig object for handling Remote Config settings.

    Declaration
    public static RuntimeConfig appConfig { get; set; }
    Property Value
    Type Description
    RuntimeConfig

    A class representing a single runtime settings configuration.

    Remarks

    Use this property to access the following RuntimeConfig methods and classes:

    public string assignmentID is a unique string identifier used for reporting and analytic purposes. The Remote Config service generate this ID upon configuration requests.

    public bool GetBool (string key, bool defaultValue) retrieves the boolean value of a corresponding key from the remote service, if one exists.

    public float GetFloat (string key, float defaultValue) retrieves the float value of a corresponding key from the remote service, if one exists.

    public long GetLong (string key, long defaultValue) retrieves the long value of a corresponding key from the remote service, if one exists.

    public int GetInt (string key, int defaultValue) retrieves the integer value of a corresponding key from the remote service, if one exists.

    public string GetString (string key, string defaultValue) retrieves the string value of a corresponding key from the remote service, if one exists.

    public bool HasKey (string key) checks if a corresponding key exists in your remote settings.

    public string[] GetKeys () returns all keys in your remote settings, as an array.

    public string[] GetJson () returns string representation of the JSON value of a corresponding key from the remote service, if one exists.

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023