Hi
I create a temporary group object to destroy unused object easily. example: i create a window/popup in game, then if player click close button, all popup object will be destroyed. all popup objects are wrapped with group.
so, i just call group.clear(true) to destroy/remove all of group object right?
I think all group children are removed, since all group object are not visible in game screen/canvas.
But there is a problem, if i click/touch at same position on last object that was destroyed, but it’s still detected, it’s a game button, if it’s clicked, click sound are played. It’s weird since there is no object here.
So, how to completely destroy an objects from a group?