影子工作室
  • 首页
  • 关于我们
  • 开发笔记
  • H5小游戏
  • 微信小游戏
  • Facebook小游戏
  • Cocos
  • Unity
  • 阿里云
  • 酷APP
  • AR
  • 读书
微信公众号:耿直的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'. 同时,在编辑器的属性检查器里,无法正常显示该类的属性值: 这是为什么呢?

阿斌
影子工作室 © 2022 闽ICP备17029130号
Latest Posts Facebook Twitter Ghost