Hey everybody,
First of all big thanks to Pixi.js people for the awesome library.
I have been using Pixi to develop a simple game and I stumble upon a small bug or I may be doing this wrong.
So here is the problem, I got a sprite which contains child's sprites.
And I want to destroy it but not the children since I was handling it manually because I need to save the state of each child sprite and then call destroy within them self. So before I calling destroy method I call a custom method on my object,
deletingObject.onDestroy();
and then call
deletingObject.destroy({ children: false, texture: false, baseTexture: false });
but this still destroys all the child within this object, I'm using
https://cdnjs.cloudflare.com/ajax/libs/pixi.js/4.1.1/pixi.min.js
as my Pixi version. and I have attached a screen shot from core developer tools.
Am I doing the function call wrong or is there something missing.
Thanks.