Playmaker Forum

PlayMaker Feedback => Action Requests => Topic started by: arkdzo on February 19, 2017, 04:00:08 PM

Title: Get Next Child (recursively with subchilds)[SOLVED]
Post by: arkdzo on February 19, 2017, 04:00:08 PM
Hi, i need add to array childs, subchilds, subsubchilds, subsubsubchilds and etc...  Can you make one action to get all childs and subchilds (recursively)?

(https://pp.vk.me/c626324/v626324660/4dd82/4TLPR1K6-8o.jpg)
Title: Re: Get Next Child (recursively with subchilds)
Post by: jeanfabre on February 20, 2017, 02:47:59 AM
Hi,

 Ok, good request, made it (https://twitter.com/JeanAtPlayMaker/status/833573728286081024), it's on the Ecosystem, the action is called "Get All Recursive Children"

so use this to save all children into an FsmArray and then you can iterate through them.

 Bye,

 Jean
Title: Re: Get Next Child (recursively with subchilds)[SOLVED]
Post by: arkdzo on February 20, 2017, 06:16:52 AM
wow!  ::) Thanks a lot!
Title: Re: Get Next Child (recursively with subchilds)[SOLVED]
Post by: arkdzo on February 20, 2017, 11:31:50 AM
oh, is it hard to make another variation of this action, in which every game object stored to GameObject variable (not array)? Like its done in the deffault Get Next Child action? I need it, because i want to check every child (GameObject) to MeshRenderer component.. Thats why i dont needed to add all GameObjects (childs, subchilds) to array...

(https://pp.vk.me/c626324/v626324660/4e185/RJLDTSrqWaU.jpg)
Title: Re: Get Next Child (recursively with subchilds)[SOLVED]
Post by: jeanfabre on February 21, 2017, 04:00:24 AM
Hi,

 ok, done (https://twitter.com/JeanAtPlayMaker/status/833964484817518592), on the Ecosystem.

 Bye,

 Jean