Hey!
I would like to chop out varied shapes from a texture for puzzle video games. At present utilizing Cocos Creator 3.6.0.
Inform me, please, what sort of masks has the least influence on the efficiency of the sport engine?
Wish to use GRAPHICS_STENCIL. Tried the instance from Cocos Creator 3.6 Consumer Guide->Masks Part Reference, bought
error: “Error: [Scene] ‘Masks.graphics’ is deprecated, please use ‘Masks.subComp’ as a substitute.”
Visible Studio Code – Property ‘graphics’ doesn’t exist on sort ‘Masks’:
However the masks works!
Will GRAPHICS_STENCIL be supported in future variations of the engine or will there be an alternate?
What may be executed with ‘Masks.subComp’?
I’ve used “Masks._graphics” in 2.x model, test if it nonetheless works in 3.x ?
Sure, I wrote that it really works, however it provides a warning: “Error: [Scene] ‘Masks.graphics’ is deprecated, please use ‘Masks.subComp’ as a substitute.” within the browser and within the Cocos Creator console, in addition to in
Visible Studio Code – “Property ‘graphics’ doesn’t exist on sort ‘Masks’”
Within the engine, the masks makes use of the _graphics, you need to use it usually.
Thanks I used to be simply confused by the deprecated API warning.