Sign In Register

How can we help you today?

Start a new topic
Answered

Cloud code, Unity attributes

Hi.


I want to save the attribute of a cloud event, that event has 10 attributes, can I make a new "GameSparks.Api.Requests.LogEventRequest ()" from just a .setEventAttribute?


If an event has 200 number attributes, does it spend a lot of data?


Thank you!


Best Answer
Hey Alejandro,

Yes, you can do this with a custom event. I would advise using a JSON instead of hundreds of individual attributes.
There is a brief tutorial on how to do this available here -> https://docs.gamesparks.com/getting-started/using-cloud-code/
And you can see how this applies to Unity here -> https://docs.gamesparks.com/getting-started/using-cloud-code/unity-cloud-code.html

The size of the data depends. There is a limit to size of a request you can send you can see here  -> https://docs.gamesparks.com/documentation/key-concepts/system-limits.html
If you can tell us what kind of data you are sending we can advise further.

Thanks,
Sean

 

1 Comment

Answer
Hey Alejandro,

Yes, you can do this with a custom event. I would advise using a JSON instead of hundreds of individual attributes.
There is a brief tutorial on how to do this available here -> https://docs.gamesparks.com/getting-started/using-cloud-code/
And you can see how this applies to Unity here -> https://docs.gamesparks.com/getting-started/using-cloud-code/unity-cloud-code.html

The size of the data depends. There is a limit to size of a request you can send you can see here  -> https://docs.gamesparks.com/documentation/key-concepts/system-limits.html
If you can tell us what kind of data you are sending we can advise further.

Thanks,
Sean

 

Login to post a comment