CocosCreator脚本中editor参数的含义

本文摘录自 CocosCreator官方文档html editor经常结合requireComponent参数使用,主要用来指定当前组件的依赖组件。web editor 参数 editor 只能定义在 cc.Component 的子类里。编辑器 cc.Class({ extends: cc.Component, editor: { // 容许当前组件在编辑器模式下运行。
相关文章
相关标签/搜索