Home Game Development Questions concerning the masks part – Cocos Creator

Questions concerning the masks part – Cocos Creator

0
Questions concerning the masks part – Cocos Creator

[ad_1]

Hello!
I want to chop out varied shapes from a texture for puzzle video games. Currently utilizing Cocos Creator 3.6.0.
Tell me, please, what kind of masks has the least influence on the efficiency of the sport engine?
Would like to make use of GRAPHICS_STENCIL. Tried the instance from Cocos Creator 3.6 User Manual->Mask Component Reference, received
error: “Error: [Scene] ‘Mask.graphics’ is deprecated, please use ‘Mask.subComp’ instead.”
Visual Studio Code – Property ‘graphics’ doesn’t exist on kind ‘Mask’:

But the masks works!
Will GRAPHICS_STENCIL be supported in future variations of the engine or will there be an alternate?
What may be completed with ‘Mask.subComp’?

I’ve used “Mask._graphics” in 2.x model, examine if it nonetheless works in 3.x ?

Yes, I wrote that it really works, nevertheless it offers a warning: “Error: [Scene] ‘Mask.graphics’ is deprecated, please use ‘Mask.subComp’ instead.” within the browser and within the Cocos Creator console, in addition to in
Visual Studio Code – “Property ‘graphics’ does not exist on type ‘Mask’”

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here