playMaker

Author Topic: Main Menu with UI Button  (Read 1304 times)

PureArtist

  • Playmaker Newbie
  • *
  • Posts: 8
Main Menu with UI Button
« 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.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Main Menu with UI Button
« Reply #1 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