Home Game Development Questions in regards to the masks element – Cocos Creator

Questions in regards to the masks element – Cocos Creator

0
Questions in regards to the masks element – Cocos Creator

[ad_1]

Hello!
I would like to chop out varied shapes from a texture for puzzle video games. Currently utilizing Cocos Creator 3.6.0.
Tell me, please, what sort of masks has the least affect 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, obtained
error: “Error: [Scene] ‘Mask.graphics’ is deprecated, please use ‘Mask.subComp’ instead.”
Visual Studio Code – Property ‘graphics’ doesn’t exist on sort ‘Mask’:

But the masks works!
Will GRAPHICS_STENCIL be supported in future variations of the engine or will there be another?
What could be achieved with ‘Mask.subComp’?

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here