Good morning!
I am working on a project using Cocos Creator.
I have created a Script with custom parameters in order to set them in the Inspector.
In this case, I created an array with this structure:
and in the inspector I have a situation like this:
but even if I set the length of the array “waves” to a number, in the image “2”, when I execute a “console.log(this.waves.length)” I always get “0”.
So the problem here is that the initialization in the inspector is not carried to the final simulation (to the compiled file).
Is this an error caused by my setup? How can I resolve this problem?
Thank you in advance!