Is there any way to create a function on a global scope so I can use the same code in different parts of the cloud code?
Or any way to create a global scope for my own app as
Spark.getPlayer(), like MyApp.customAction() ?
Hi Alp,
We already allow for this through the use of modules. They can be acquired and exposed in any of your Cloud Code Scripts.
Does this answer your question?
Best Regards, Patrick.
Yes definitely, sorry I was completely oblivious about modules.
Thanks!
Happy to help Alp,
Any further questions just hit us up here on the forums and we will answer as best we can.
Alp Dogan Urut
Is there any way to create a function on a global scope so I can use the same code in different parts of the cloud code?
Or any way to create a global scope for my own app as
Spark.getPlayer(), like MyApp.customAction() ?
Hi Alp,
We already allow for this through the use of modules. They can be acquired and exposed in any of your Cloud Code Scripts.
Does this answer your question?
Best Regards, Patrick.
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstCustomer Support
Hi Alp,
We already allow for this through the use of modules. They can be acquired and exposed in any of your Cloud Code Scripts.
Does this answer your question?
Best Regards, Patrick.
Alp Dogan Urut
Yes definitely, sorry I was completely oblivious about modules.
Thanks!
Customer Support
Happy to help Alp,
Any further questions just hit us up here on the forums and we will answer as best we can.
Best Regards, Patrick.
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2487 topics