Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: nabilfx on September 12, 2015, 05:52:59 PM

Title: Buttom reset help
Post by: nabilfx on September 12, 2015, 05:52:59 PM
I have 3 buttons, with three different objects in each, but when I press the button, the object appears, and when I press another button the object appears over the previous and not disappear, how can I fix this so when I press another button the object disappears and appears the button object that I am pressing,

im using PlayMaker Unity UI Proxy
Title: Re: Buttom reset help
Post by: djaydino on September 12, 2015, 07:07:22 PM
Hi,
if i understand correctly you have an fsm on each button?

the reason is because they are not resetting.
reset will only happen when the state is exited
(moved to another state on the same fsm)

try making it into 1 fsm :
make 3 event names : button1, button2, button3,
and set them as global transition for each state (with your activate gameobject action)

on the "Ugui Component proxy" component from each button click on the edit button and rename to button1 / button2 / button3
Title: Re: Buttom reset help
Post by: nabilfx on September 13, 2015, 11:01:12 AM
thank you very much, works great!