[bug反馈]2.0.1版本typescript 使用 @property(cc.AudioClip)

  • Creator 版本:2.0.1

  • 编辑器报错:

  • The default value of ActionContext.clickEffect must be an empty string. (changed since 1.8)
  • Please change the definition of property ‘waterEffect’ in class ‘ActionContext’. Starting from v1.10,
  • 重现方式:
//创建如下组件:
const {ccclass, property} = cc._decorator;
@ccclass
export default class ActionContext extends cc.Component {
    @property(cc.AudioClip)
    clickEffect:cc.AudioClip=null;
}
  • 编辑器操作系统 :win

昨天刚看这个帖子,你应该这么定义
@property({type:cc.AudioClip})

1赞

感谢!已解决!

怎么是这种写法?改了?