版本从1.x 到2.1.3
@property(cc.RawAsset) manifestUrl: cc.RawAsset = null;
按照文档修改成
@property(cc.Asset) manifestUrl: cc.Asset = null;
保存后还是报警告
Please change the definition of property ‘manifestUrl’ in class ‘HotUpdateView’. Starting from v1.10,properties in CCClass can not be abbreviated if they are of type RawAsset.Please use the complete form.For example, if the type is Texture2D, the previous definition is: manifestUrl: cc.Texture2D,If you use JS, it should be changed to: manifestUrl: { type: cc.Texture2D // use ‘type:’ to define Texture2D object directly default: null, // object’s default value is null },If you use TS, it should be changed to: %s: { type: cc.Texture2D // use ‘type:’ to define Texture2D object directly } %s: cc.Texture2D = null;(This helps us to successfully refactor all RawAssets at v2.0, sorry for the inconvenience.
)
请问下大神们需要怎么修改 谢谢~~~
有没有老哥遇到过的 ~