I am making an extension based on JavaScript events.
One of the JavaScript events returns me an array of objects that looks like [{…}, {…}] and I store it as a JavaScript variable (not a GDevelop variable) named data
.
There is a function property (argument) called callback
which is a GDevelop variable (not a scene variable which is deprecated).
I would like to send data
children to callback
.
My Javascript is still a bit weak but I understand the fundamentals and I’m willing to try to help.
Are you talking about using 2 functions? Are you saving the data objects as a gdevelop variable as a string in the JSON format?
Do you want to then send the objects contained within the data variable (one at a time) to another function?
As I said, I’m still a bit weak. It also helps to see at least snippets of the Javascript code.
This might be above my understanding. Hopefully, someone else can help.
1 Like