playMaker

Author Topic: Activate / Deactivate[SOLVED]  (Read 2608 times)

TommyA

  • Playmaker Newbie
  • *
  • Posts: 26
Activate / Deactivate[SOLVED]
« on: August 01, 2013, 03:40:06 AM »
Hi,
When I activate / deactivate gameobjects, I use "Activate Game Object" action.
I works good but it affect to whole childs if I use recursive option.
If I activate parent via this action, all of childs is activated.
But if I have gameobject hierarchy which has activated and deactivated childs, and I just want to turn on/off parent so even if I turn on only parent, I want deactivated childs still be remained as deactivated.
Any advice?
« Last Edit: August 05, 2013, 07:21:03 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Activate / Deactivate
« Reply #1 on: August 02, 2013, 09:40:37 AM »
Hi,

 I tested, and that works. I use "Activate GameObject", and uncheck "recursive" and that works, childs keep their active state unchanged.

 Are you on unity 3 or 4?

bye,

 Jean

TommyA

  • Playmaker Newbie
  • *
  • Posts: 26
Re: Activate / Deactivate
« Reply #2 on: August 02, 2013, 11:47:12 PM »
Hi Jean
Sorry I test again and it works correctly.
I use Unity4.x version.
As I remember in Unity3.5x, When I used activate action, it activated/deactivated only parent object. My memory might be wrong but I misunderstood this action.
Anyway sorry again for waste your time.  ;)
Thank you.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Activate / Deactivate[SOLVED]
« Reply #3 on: August 05, 2013, 07:21:21 AM »
Hi,

 no worries  :)

bye,

 Jean