I am using typescript for my all projects but after upgrading to Cocos Creator 2.0.1, I am getting the warning mentioned below:
Please change the definition of property 'FBaudio' in class 'manager'. 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:
FBaudio: [cc.Texture2D],
Now it should be changed to:
FBaudio: {
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. 😰 )
Thanks for the help. I have done all the possible changes in my project. But after publishing in Mozilla (v61.0.2) I am getting the below warning. Please help for this if there is any issue about this warning.
Error: WebGL warning: texSubImage2D: Texture has not been initialized prior to a partial upload, forcing the browser to clear it. This may be slow. render-engine.js:8268:6
Error: WebGL warning: texSubImage2D: This operation requires zeroing texture data. This is slow. render-engine.js:8268:6
Error: WebGL warning: Calling gl.clear(0) has no effect.
It is giving only in Firefox browser. I have just taken a new hello world file and publish on browser and i got this warning. For demo, take a new file with hello world template and just click on play with browser. In console it gives the warning. I am attaching the image of that too.