Quantcast
Channel: Cocos中文社区 - 最新主题
Viewing all articles
Browse latest Browse all 88737

怎么声明Class的成员属性为一个数组, 类型是Class 自己

$
0
0

@jumpchess1 写道:

AAA.js
var AAA = cc.Class({
properties: {
vec: [AAA]
},
...
});
module.exports=AAA;

但是这样编译不过.
The "type" attribute of ".vec" is undefined when loading script.

帖子: 1

参与者: 1

阅读整个主题


Viewing all articles
Browse latest Browse all 88737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>