playMaker

Author Topic: Get Next Child (recursively with subchilds)[SOLVED]  (Read 3562 times)

arkdzo

  • Playmaker Newbie
  • *
  • Posts: 16
Get Next Child (recursively with subchilds)[SOLVED]
« 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)?

« Last Edit: February 20, 2017, 02:48:14 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Get Next Child (recursively with subchilds)
« Reply #1 on: February 20, 2017, 02:47:59 AM »
Hi,

 Ok, good request, made it, 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

arkdzo

  • Playmaker Newbie
  • *
  • Posts: 16
Re: Get Next Child (recursively with subchilds)[SOLVED]
« Reply #2 on: February 20, 2017, 06:16:52 AM »
wow!  ::) Thanks a lot!

arkdzo

  • Playmaker Newbie
  • *
  • Posts: 16
Re: Get Next Child (recursively with subchilds)[SOLVED]
« Reply #3 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...


jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Get Next Child (recursively with subchilds)[SOLVED]
« Reply #4 on: February 21, 2017, 04:00:24 AM »
Hi,

 ok, done, on the Ecosystem.

 Bye,

 Jean