playMaker

Author Topic: [solved] how to destroy clones ?[SOLVED]  (Read 1478 times)

cmvrgr

  • Junior Playmaker
  • **
  • Posts: 64
    • View Profile
[solved] how to destroy clones ?[SOLVED]
« on: September 04, 2013, 05: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
« Last Edit: July 05, 2019, 01:09:30 AM by jeanfabre »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3637
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: how to destroy clones ?
« Reply #1 on: September 04, 2013, 05: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.

cmvrgr

  • Junior Playmaker
  • **
  • Posts: 64
    • View Profile
Re: how to destroy clones ?
« Reply #2 on: September 05, 2013, 04:51:53 AM »
Found a solution. If someone needs help Just sent PM  ... I will be happy to assist.
« Last Edit: September 06, 2013, 05:20:23 PM by cmvrgr »

rizwanash

  • Junior Playmaker
  • **
  • Posts: 51
    • View Profile
Re: [solved] how to destroy clones ?
« Reply #3 on: July 05, 2019, 12:44:37 AM »
@cmvrgr What solution did you find ? can you tell us here so others can also find it useful. Thanks