How to get percent of erased surface based on "Render Texture"?

Hello,

I’m currently trying to get the percent of erased surface based on: https://phaser.io/examples/v3/view/game-objects/render-texture/erase-part-of-render-texture

I took a deep look into the “add.renderTexture(X)” returned values, but i found no way to do what i’m looking for.
Does anybody have a clue of how I can accomplish this ?

Thank you very much !

Can be done with a CanvasTexture, I’ll look for an example. :eyes:

3 Likes

Thank you very much samme, it’s exactly what i looked for !
I tried with CanvasTexture like you said, but without success,and i gave up.

Thanks again, you made my day !

1 Like