Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: elusiven on October 03, 2016, 06:36:16 AM

Title: events and clones
Post by: elusiven 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
Title: Re: events and clones
Post by: djaydino 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
Title: Re: events and clones
Post by: elusiven 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..