Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question Integrating Existing Backend Data with Unity Gaming Services (UGS)

Discussion in 'Cloud Code' started by AmadeusSalieri, May 2, 2024.

  1. AmadeusSalieri

    AmadeusSalieri

    Joined:
    Jan 4, 2021
    Posts:
    16
    I am currently developing a Metaverse game using Unity Gaming Services (UGS) and would like to incorporate existing account information, user data, and other databases from our company’s proprietary servers. Our goal is to maintain this integration seamlessly and ensure scalability for future expansions.

    Could you advise if UGS supports communication with our own servers through web communication methods? Would utilizing cloud code be the appropriate approach for this?

    Additionally, we plan to integrate services like the OpenAI API into our backend server infrastructure. I'm concerned about the potential complexity of managing separate account information systems between our backend web server and UGS. Are there recommended strategies or tools within UGS that can facilitate a smooth integration without duplicating efforts across multiple platforms?

    Any insights or alternative suggestions on how to handle these integrations effectively would be greatly appreciated.

    Thank you!
     
  2. samg-unity

    samg-unity

    Unity Technologies

    Joined:
    Mar 23, 2021
    Posts:
    45
    Hi @AmadeusSalieri

    > Could you advise if UGS supports communication with our own servers through web communication methods?

    We have some examples of how this could be done in C# modules https://docs.unity.com/ugs/en-us/ma...s/how-to-guides/external-services-integration or via Javascript https://docs.unity.com/ugs/en-us/ma...-integration#Integrate_with_external_services

    > Would utilizing cloud code be the appropriate approach for this?

    Cloud Code provides a server authoriative solution but you should assess the current limitations around execution time and rate limits https://docs.unity.com/ugs/en-us/manual/cloud-code/manual/modules/reference/limits#Limits to assess whether it will fufill your particular use case criteria. I would note that Cloud Code currently lacks an appropriate solution for storing and utilising credentials but it is something we are working towards providing.

    > I'm concerned about the potential complexity of managing separate account information systems between our backend web server and UGS. Are there recommended strategies or tools within UGS that can facilitate a smooth integration without duplicating efforts across multiple platforms?

    UGS has a command line tool that would help facitate managing resources via a CICD pipeline https://docs.unity.com/ugs/en-us/manual/cloud-code/manual/scripts/how-to-guides/automation
     
    GabKBelmonte likes this.