playMaker

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

Redome

  • Playmaker Newbie
  • *
  • Posts: 5
    • View Profile
Activate/deactivate game object and component
« on: September 29, 2019, 09:38:10 AM »
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: 4615
    • View Profile
    • jinxtergames
Re: Activate/deactivate game object and component
« Reply #1 on: September 29, 2019, 09:47:13 AM »
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.