Other UGS integration with Cloud Code C#

Hello!
I am looking to implement cloud save functionalities along with currency management (increment/decrement) using cloud code, specifically in C#. However, most available examples and documentation primarily focus on JavaScript and I would prefer the implementation to be in C#.

I was able to run a module on UGS that doesn’t require other gaming services or user auth, but I would need a basic code sample to know how to:
1- save/load a value from Cloud Save from Cloud Code C# for a user
2- update a currency for a user

This is where I got…

        [CloudCodeFunction("SubstractFromSubscriptionCount")]
        public async Task<int> SubstractFromSubscriptionCount()
        {
            // dictionary saved previously for an int:
            /*
            Dictionary<string, object> startValueSubscription = new Dictionary<string, object>
            {
                {currentSubscriptionReadingCount, TOTAL_SUBSCRIPTION_READINGS}
            };
            */
            var fetchData = await CloudSaveDataApi... ?
        }

Hey! Check this documentation page out: Integrate with other Unity services

1 Like

I don’t know how I missed that, I saw that page at least twice. Oh well!
Thank you!

Add to that, UGS published a fully working game with CCC# as an example, I love working samples, so here’s one:

2 Likes