Playmaker Forum

PlayMaker Updates & Downloads => Share New Actions => Topic started by: jeanfabre on September 09, 2015, 04:18:22 AM

Title: ActivateChildren
Post by: jeanfabre on September 09, 2015, 04:18:22 AM
Hi,

 Ok, this action will help you control activation depth when doing recursive activation on childrens.

 so you'll be able to choose when the recursion should stop, you can for example only activate/deactive the direct children, or 2 3 any number of depth, -1 will do a full recursion on all children.

 It's available on the Ecosystem (http://j.mp/1Esn1mF)

ActivateChildren (https://github.com/jeanfabre/PlayMakerCustomActions_U4/blob/master/Assets/PlayMaker%20Custom%20Actions/GameObject/ActivateChildren.cs)

 Bye,

 Jean
Title: Re: ActivateChildren
Post by: coxy17 on June 10, 2016, 01:14:04 PM
Hi jean

Ive been using this script in Unity 4 and now it wont work on Unity 5. Says 'NullReferenceException: Object reference not set to an instance of an object'

Nick
Title: Re: ActivateChildren
Post by: jeanfabre on June 16, 2016, 03:56:24 AM
Hi,

 It works in my tests. I could not default it...

Maybe you are deleted one of this object at the same time?

 can you paste the full log error so that I know which line exactly is getting a problem?

Bye,

 Jean