playMaker

Author Topic: Activate Game Object problem  (Read 2599 times)

PolyMad

  • Hero Member
  • *****
  • Posts: 545
Activate Game Object problem
« on: April 03, 2013, 03:08:10 AM »
I have a prefab, the parent has and FSM with a GET RANDOM CHILD that is put in a variable.

Each of the 3 children has a FSM that turns them off immediately (they are sounds and I need them silent and choose only one).
A as you know, Unity, for some obscure reason, activates all the objects in prefabs (I hate it, if I save a prefab in a status why in hell they don't save also the active boolean with it???) and for what I know there is no way to make it differently.

Following that get random child, there is ACTIVATE GAME OBJECT, and I use the object variable found at the previous action.
I tried also to activate RECURSIVE, but I think it's not needed if there are no more children, right?

Debug shows that one of the children is taken.

But the damn object is not getting activated.

I also tried to give a little delay, like 0.01, before the two actions, to be sure that they don't run before the children actions, but it doesn't work.

Any idea?

vonpixel

  • Playmaker Newbie
  • *
  • Posts: 14
Re: Activate Game Object problem
« Reply #1 on: May 19, 2013, 01:43:13 PM »
I ran into this problem today actually..


Any luck since posting this?


I have a bunch of de-activated objects that should be activated by player chosen activities in a similar set up.


They don't actually activate though- even though debug shows that their Bool var is changing.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3998
  • Official Playmaker Support
    • LinkedIn
Re: Activate Game Object problem
« Reply #2 on: May 19, 2013, 02:00:15 PM »
Could you file a bug (Playmaker/Tools/Submit Bug Report) and attach a simple project that shows the problem and describe how you want it to behave.