Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17078

Sprite removes all cc.Component's when I call removeFromParent method

$
0
0

@bibagames wrote:

Hi,

I have a sprite with set of cc.Component's attached to it. I want to change parent container of this sprite. I call "removeFromParent" method of this sprite with "cleanup" flag set to "false" before add it to the new container. But when I call "removeFromParent" method it removes all components from the sprite. How can I move the sprite from one container to other without deleting components?

Thank you in advance!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17078

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>