Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Clarifying Remote Settings with Multiple Projects

Discussion in 'Unity Analytics' started by ferretnt, Sep 13, 2017.

  1. ferretnt

    ferretnt

    Joined:
    Apr 10, 2012
    Posts:
    412
    Like many other companies, we build many apps out of a single core UnityProj (codebase.) We bind to different Unity Cloud Projects prior to building (for analytics, ads, etc) as recommended here:

    Can I just confirm that we do NOT need to update the Remote Settings API Key (under editor menu Window-->UnityAnalytics-->Remote Settings) when doing this? It looks like we don't, and Remote Settings keys will be pulled from the new database setting automatically at runtime. It also looks like they're looked up by Name, so remote settings continue to work provided you make a key with the same name in every project.

    In other words, it looks like the Remote Settings unity analytics API key isn't really used for anything except updating the list of keys the editor displays for binding to. Can you please confirm that's correct?
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Upon investigation, it appears that what you are suggesting should work. The Project Secret Key is unique per project and will have to be entered when the editor is linked to a new project. But you should only have to do that the first time. It is saved in the Editor preferences file, and not per project https://docs.unity3d.com/Manual/UnityAnalyticsRemoteSettingsEnabling.html
     
    Last edited: Sep 14, 2017