Hey everybody
I am relatively new to JavaScript and Cocos Creator. I am currently trying to understand how the camera works in the new version of Cocos Creator, Here is my first problem:
followX: {
default: 0,
visible () {
return this.smoothFollow;
}
},
I don’t understand what is the purpose of visible
here. I usually do not use visible, or I I use visible : false,
, til now I thought that the visible is just there to specify if you wanna have this property visible in the engine UI or not, but I think I was wrong.