Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Redome on September 29, 2019, 12:38:10 PM

Title: Activate/deactivate game object and component
Post by: Redome 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?
Title: Re: Activate/deactivate game object and component
Post by: djaydino on September 29, 2019, 12:47:13 PM
Hi.
On the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181) 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.