Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17070

JS var declaration without editor visibility

$
0
0

@Alekhine wrote:

Hi, I'm looking for the best practice to declare variabels that shouldn't be visible in editor.
I'm aware of the 'visible' property in vars declared inside properties scope of cc.component, like this:

properties: {
    internalArray: {
        visible:false,
        type:[],
    },
}

However this is a pretty lengthy declaration for a simple array.

I also know of the static vars declared outside class/component scope that are not visible in editor, however I'm not looking to declare static variabels.
is there another way to declare an internal array(that is an array that shouldnt be visible in the editor)?

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 17070

Trending Articles