playMaker

Author Topic: events and clones  (Read 1367 times)

elusiven

  • Full Member
  • ***
  • Posts: 233
  • Debt we all must pay...
events and clones
« on: October 03, 2016, 06:36:16 AM »
Hi there,

I make a couple of prefab clones, and I want each clone to have a button and a separate event to send the click but instead of activating just on one, when i click one of the clones it activates all of them... Is there a way to change this?? And also what is edit prefab and edit instance difference ? Thanks

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: events and clones
« Reply #1 on: October 03, 2016, 07:14:23 AM »
Hi.

Quote
what is edit prefab and edit instance difference ?

The difference is that if you edit the prefab, it will change on all clones.
If you edit the instance it will only change on that clone.

So if you dragged in the clones 'not' in runtime you can edit them to connect to your button

elusiven

  • Full Member
  • ***
  • Posts: 233
  • Debt we all must pay...
Re: events and clones
« Reply #2 on: October 03, 2016, 08:38:58 AM »
not in run-time? The thing is that I've only got one prefab, and then I create new clones on-the-go based on information provided in the xml file.. So do I have to run the application and then edit the instance of these objects (clones)? - they only appear when in run-time.

Ok nevermind...That was dumb question lol. In runtime, once the clone got created, on start I ran get owner, saved it and then used it and it works... Simple, thanks..
« Last Edit: October 03, 2016, 09:31:51 AM by elusiven »