遇到数组类型的要怎么写赋值?
测试了比如cc.Vec2 数组可以这么写:
path: ‘vecs’,
type: ‘cc.Vec2’,
value: {
0: {x: 11, y: 12},
1: {x: 21, y: 22},
2: {x: 31, y: 32},
},
换成cc.SpriteFrame之类的,改成
path: ‘images’,
type: ‘cc.SpriteFrame’,
value: {
0: {uuid:uuid1},
1: {uuid:uuid2},
2: {uuid:uuid3},
},
数组位置倒是有了,但是赋值的时候是空的,
有段要怎么写有人知道不?