I don't understand what does visible do tn this code

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.

example with particle node
it means this.custom = false

it means this.custom = true and other inputs are shown
Untitled1

so
visible () { return this.costom; }

1 Like