I can't send data to my JS Module

I know no shit about JS but i dont think this is right.


I literally copied the thing from the docs online but when i call the function like this:


the overall value always stays 0 and in the saving logs it says value undefined
Look:

I have deployed every time i edit the script, and it only weorks if i call the const variable from inside the JS script ofc, but when i call from somewhere else i cant send input data

In that case, why are you using shitty JS? :stuck_out_tongue:

You can program Cloud Code in C#.

Can u please show me the snippet to save Game Data in Cloud Save With C# sinnce i cant find it

I believe the issue could be the params haven’t been defined for the script - please see this previous response to see if it resolves your issue? Cloud Code Cross-Player Data Example Not Working

Otherwise if you’re more comfortable using C#, we have an example here: Integrate with other Unity services

Can i just get where was i supposed to learn this

to define parameters

Now it works i love you bro

1 Like

No problem, we have some sections in the documentation

When working with the Editor:
https://docs.unity.com/ugs/en-us/manual/cloud-code/manual/scripts/how-to-guides/write-scripts/unity-editor#Modify_script_parameters

Or in the dashboard:
https://docs.unity.com/ugs/en-us/manual/cloud-code/manual/scripts/how-to-guides/write-scripts/unity-dashboard#Adding_parameters