Hi everyone, nice to know you all :)
I am new with pixiJS, so i hope someone can help me.
I use pixi with Typescript. Right now i have created a scene manager class. I define scene as everything inherited from PIXI.Container
What went wrong is when one of the children is a Sprite. pixi will call destroy method of PIXI.Sprite with 'true' as a first argument. Thus we will destroy the texture too.
Is this the correct implementation? Can we keep the texture on the cache without destroying it?
I see,
For now, i solve the problem with calling container's destroy method without true argument. Thus make sure pixi wont call children's destroy method. Makes me destroy things manually.
Looking at the source, i hope PIXI.container destroy method will send true argument only to child which is also a container object, and not sending any argument to child sprite object.
I haven't checked in game memory used yet when we ignore calling destroy. What do you use to profile HTML5 in-game memory used?