厦门暗游网络科技有限公司
  • 首页
  • 关于我们
  • 开发笔记
  • Cocos
  • Unity
  • 读书
  • Privacy
  • StayTab
微信公众号:耿直的IT男阿斌

ccclass

A collection of 1 post

开发笔记

#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'. 同时,在编辑器的属性检查器里,无法正常显示该类的属性值: 这是为什么呢?

阿斌
厦门暗游网络科技有限公司 © 2025 闽ICP备17029130号
Latest Posts Facebook Twitter Ghost
More Indies: Kevin (Game Dev) John Wilson (App Dev)