docs.unity3d.com
    Show / Hide Table of Contents

    Class RuntimeConfig

    This class represents a single runtime settings configuration. Access its methods and properties via the ConfigManager.appConfig wrapper.

    Inheritance
    Object
    RuntimeConfig
    Namespace: Unity.RemoteConfig
    Syntax
    public class RuntimeConfig

    Fields

    Name Description
    configType

    The config type for this RuntimeConfig, default is "settings".

    Properties

    Name Description
    assignmentId

    The Remote Config service generates this unique ID on configuration requests, for reporting and analytic purposes. Returns null if there is no assignmentId yet.

    config

    Returns a copy of the entire config as a JObject.

    configAssignmentHash

    The Remote Config service generates this unique ID on configuration requests, for reporting and analytic purposes. Returns null if there is no configAssignmentHash yet.

    environmentId

    The Environment ID that has been returned by the Remote Config Delivery service.

    origin

    Retrieves the origin point from which your configuration settings loaded.

    Methods

    Name Description
    GetBool(String, Boolean)

    Retrieves the boolean value of a corresponding key, if one exists.

    GetFloat(String, Single)

    Retrieves the float value of a corresponding key from the remote service, if one exists.

    GetInt(String, Int32)

    Retrieves the int value of a corresponding key, if one exists.

    GetJson(String, String)

    Retrieves the string representation of the JSON value of a corresponding key from the remote service, if one exists.

    GetKeys()

    Returns all keys in your remote settings, as an array.

    GetLong(String, Int64)

    Retrieves the long value of a corresponding key from the remote service, if one exists.

    GetString(String, String)

    Retrieves the string value of a corresponding key from the remote service, if one exists.

    HasKey(String)

    Checks if a corresponding key exists in your remote settings.

    Events

    Name Description
    FetchCompleted

    This event fires when the config is successfully returned from the Remote Config backend.

    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