Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Question Trigger Remote Config Fetch on Data Changed

Discussion in 'Cloud Code' started by schirDev, Jul 9, 2022.

  1. schirDev

    schirDev

    Joined:
    Mar 7, 2018
    Posts:
    12
    I'm new to Unity Gaming Services and using a backend for my games in general, so sorry in advance, if my question was already answered or my phrasing is poorly informed. I tried to find a solution for this, but could not find any information, nor am I certain this is the right approach.

    tldr:

    I want all active game sessions (Android & iOS) get notified, if a remote setting got changed (either by some sort of admin app and/or the Unity web interface), so that they can then fetch the updated remote settings.

    I just want to avoid constant fetching. My usecase demands runtime changes of settings (states) by an admin/director application for a live performance. (The number of users who need to be notified about a state change could be up to 5000 at a time)

    Is this kind of notification possible with cloud code, or do I need to think about a different solution?

    Any feedback, tip, or angle is much appreciated
     
  2. Unity_AndyP

    Unity_AndyP

    Unity Technologies

    Joined:
    Jun 23, 2021
    Posts:
    64
    This is currently not something we have available within the UGS product suite as it's a fetch-only API for now with no open connection between Remote Config and the game client. However, this is something we are working towards which you should see come out in the future.

    We might be able to use a mix of the different services in the UGS suite to accomplish what you are trying to do but I would need to know more information on your use case such as what are you planning to change in the application? Would you be using the SDK's or the API? Would you be changing the whole game experience for the user or only certain parts?
     
  3. schirDev

    schirDev

    Joined:
    Mar 7, 2018
    Posts:
    12
    Hey thanks for the reply. To find some mixed services solution would be great. My usecase is as follows:

    The audience can use a Android/iOS Unity app during a theater performance to interact with some on-stage projections, that are rendered by a PC/MAC unity application. At different times of the performance there should be different interaction prompts on the mobile devices.

    Generally this should be achievable by syncing the start time of the performance beforehand, and just time the different game parts locally, but If the show runs late, some unforeseen difficulty's arise and generally to stay in control, it would be good to have a remote option (within the unity web interface or through the described stage/admin app) to trigger these states manually or pause them.

    I was thinking of building a finite state machine, having to sync the current state with remote config or some cloud/backend solution. But as I described earlier, I want to avoid constant fetching from the clients side to keep traffic low. I'm not sure if I will be using the SDK or API, haven't made myself familiar with the differences.

    tl;dr

    - mix of different services to avoid fetching would be fine/great
    - the user experience would change drastically, but all I need is a manually change- and pushable state variable (e.g. an int)
    - I'm not familiar with the differences of SDK and API, yet (going to google now)