Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: cmvrgr on September 04, 2013, 08:22:29 PM

Title: [solved] how to destroy clones ?[SOLVED]
Post by: cmvrgr on September 04, 2013, 08:22:29 PM
I created an fsm that created clones of an object on a strate line over time.

How I can delete the clones after I click a button ?

I tried to create a empty game object and i attached the "main object" that is cloned but when clones are created they are created out of that game object and I cant delete them all together with the "destroy object" .

thanks
Title: Re: how to destroy clones ?
Post by: Alex Chouls on September 04, 2013, 08:56:47 PM
One simple way is to parent all the created clones to a parent object, then delete the parent object to delete all the clones. You can then make a new parent object so you can repeat this over and over...

You can often use the scene hierarchy to make group operations much easier. E.g.,
you could extend this idea to organize different "buckets" of objects under different parents.
Title: Re: how to destroy clones ?
Post by: cmvrgr on September 05, 2013, 07:51:53 AM
Found a solution. If someone needs help Just sent PM  ... I will be happy to assist.
Title: Re: [solved] how to destroy clones ?
Post by: rizwanash on July 05, 2019, 03:44:37 AM
@cmvrgr What solution did you find ? can you tell us here so others can also find it useful. Thanks