用TS写的属性:
@property([cc.AudioClip])
audioPaths: cc.AudioClip[] = [];
提示这个警告:
Please change the definition of property ‘audioPaths’ in class ‘AudioPlay’. 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 property is Texture2D’s url array, the previous definition is:
audioPaths: [cc.Texture2D],
Now it should be changed to:
audioPaths: {
type: cc.Texture2D, // use ‘type:’ to define an array of Texture2D objects
default: []
},
(This helps us to successfully refactor all RawAssets at v2.0, sorry for the inconvenience.
)
这种要怎么改?