playMaker

Author Topic: Activate/deactivate game object and component  (Read 2182 times)

Redome

  • Playmaker Newbie
  • *
  • Posts: 5
Activate/deactivate game object and component
« on: September 29, 2019, 12:38:10 PM »
Hi, I'm trying to activate a game object with it's children, but just the first layer.
The "recursive" option for the "activate game object" action applies to all children.


If that isn't possible i could try to activate/deactivate components, but i only see the options to "add" or "destroy" them.

Is it posible to do any of this?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7620
    • jinxtergames
Re: Activate/deactivate game object and component
« Reply #1 on: September 29, 2019, 12:47:13 PM »
Hi.
On the Ecosystem you can find 'Activate Component(s)' actions

You could also use an array, place the children and loop thru to deactivate them.

BUT if a parent is inactive the child will also be inactive. even when not recursive.