docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class EditorGameServiceRemoteConfiguration<T>

    Fetches and parses JSON config object or returns a newly constructed object on failure. If the config is successfully loaded it will be cached in SessionState

    Inheritance
    object
    EditorGameServiceRemoteConfiguration<T>
    CdnConfiguredEndpoint<T>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Services.Core.Editor
    Assembly: Unity.Services.Core.Editor.dll
    Syntax
    public class EditorGameServiceRemoteConfiguration<T> where T : new()
    Type Parameters
    Name Description
    T

    The type of object to deserialize

    Constructors

    EditorGameServiceRemoteConfiguration(string)

    Constructor

    Declaration
    public EditorGameServiceRemoteConfiguration(string configUrl)
    Parameters
    Type Name Description
    string configUrl

    The url to use to fetch the config

    Methods

    ClearCache()

    Erases the configuration from SessionState and from memory. Will force the configuration to be fetched from the server the next time it is requested.

    Declaration
    public void ClearCache()

    GetConfiguration(Action<T>)

    Retrieves the configuration from the cache or server and provides it to the caller. Makes an effort to return the cached object first, then checks SessionState, and finally fetches from the server. If all else fails returns a default constructed object. NB: Newly constructed instances of this class will use SessionState if it's available before calling out to the server.

    Declaration
    public void GetConfiguration(Action<T> onGetConfigurationCompleted)
    Parameters
    Type Name Description
    Action<T> onGetConfigurationCompleted

    Callback action to retrieve the configuration.

    In This Article
    Back to top
    Copyright © 2025 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)