Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: PureArtist on December 18, 2016, 08:45:32 AM

Title: Main Menu with UI Button
Post by: PureArtist on December 18, 2016, 08:45:32 AM
Hi I am trying to create a main menu using UI Button, I am having problem activating and deactivating objects that were activated/deactivated with Activate Game Object.
Title: Re: Main Menu with UI Button
Post by: jeanfabre on December 19, 2016, 04:52:08 AM
Hi,

 you need to have

-- either a manager that's ALWAYS active and keep a reference to the GameObject you activate/deactivate.

-- either parent or a convention on how to find the object to reactivate. It can be the direct child for example. So you have Dummies inserted in the hierarchy and the actual target object doesn't have any fsm dealing with activation, it's the parent that responsible for it.

-- else, you only softly deactivate functionality by either moving to en empty state with a global event or disable just the Fsm component.


Bye,

 Jean