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

Recieving warnings for an array with default type cc.Vec2

$
0
0

@Alekhine wrote:

I'm getting flooded with warnings after I created an array property with default type cc.Vec2, and then filled said array with cc.Vec2s in the editor.
Here's the array declaration.

altPositions:{
            default: [],
            type: cc.Vec2,
            visible: true
        },

Here's the warning message.

Expecting object type of value for "altPositions.0.x", but got "number" type.
Expecting object type of value for "altPositions.0.y", but got "number" type.

And here's an image showing the declaration in editor.

Any ideas how to declare the array in such a way as to not get spammed by warnings?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17070