Need to destroy an actor after I spawn it?

Hi,

Do I need to destroy the actor after I spawn even if it has disappear so I can save memory? Thanks.

KC

Comments

  • JarrenHJarrenH Member Posts: 206
    Not sure what you are asking. Spawning creates the actor. Destroying removes it.
  • spidey906spidey906 Member Posts: 52
    Thank you for your reply. My question is when I use spawning to create an actor, it takes memory. What if it leaves the the scene(firing), does it still take memory or I have to destroy it even it disappears. Thanks.
  • JarrenHJarrenH Member Posts: 206
    Oh, ok, that makes sense. The actor is still in memory even when it leaves the screen, so yes, it should be destroyed. So when its location is father away then the edge of the screen, you can destroy it.
Sign In or Register to comment.