phaser3-nineslice icon indicating copy to clipboard operation
phaser3-nineslice copied to clipboard

Don't work since Phaser update 3.19.0

Open gogoflash opened this issue 5 years ago • 1 comments

The main problem that is in new Phaser 3.19.0 in RenderTexture you must set true texture dimentions in constructor. Otherwise happens something that i dont understand and any other call to setSize or resize produce unexpected results.

I try found a way to fix this, but do it only a dirty way. I copied the source and pass expect dimentions in super call: super(scene, positionConfig ? positionConfig.x : 0, positionConfig ? positionConfig.y : 0, positionConfig ? positionConfig.width : 32, positionConfig ? positionConfig.height : 32); instead super(scene, 0, 0, 32, 32)

gogoflash avatar Aug 22 '19 18:08 gogoflash

Thanks gogoflash, I will need this for a project in 3.19

aray-lp avatar Oct 31 '19 17:10 aray-lp