开发笔记

#Cocos Creator# 序列化自定义类报错:Can not serialize 'xxx' because the specified type is anonymous, please provide a class name

想在Cocos Creator的场景编辑器的使用自定义的ccclass子类,却遇到这个奇葩的错误: Can not serialize 'BalancePlayground.testRulers' because the specified type is anonymous, please provide a class name or set the 'serializable' attribute of 'BalancePlayground.testRulers' to 'false'. 同时,在编辑器的属性检查器里,无法正常显示该类的属性值: 这是为什么呢?