Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: detomato on August 11, 2016, 11:15:24 PM

Title: Toggle multiple game object on Mouse Over
Post by: detomato on August 11, 2016, 11:15:24 PM
Hi,
I have a character with multiple choice of attachment. Eg 5 choices of shoulder pad. What I want to achieve is when I hover a button, the correspondent attachment (gameobject) will be active and the current one will be deactivate. On mouse exit, everything will go back to previous state.

I can easily achieve this if theres only 1 gameobject, but since I have multiple, what is the best way?

Thanks.
Title: Re: Toggle multiple game object on Mouse Over
Post by: kavery on August 12, 2016, 10:06:04 AM
Have you tried using a GameObject variable to designate the currently equipped gear? If you have this set, you will always turn it back on when mouse exits a button, while turning off the preview gear GO.
Title: Re: Toggle multiple game object on Mouse Over
Post by: detomato on August 18, 2016, 11:30:13 AM
thanks for the reply.
I dont quite get it tho. Do you by any chance has any sample on that?

Regards.