Last active
October 5, 2017 13:28
-
-
Save deathponta/a7f3c61c8b27993fa87c0b9f6588e699 to your computer and use it in GitHub Desktop.
再帰処理で子をすべて取得。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
再帰処理で子をすべて取得。 | |
この方法だと、オブジェクトのクラスなどによって、フィルタリングすることもできるはず! | |
*/ | |
childrens = #() -- 子を入れる箱を用意 | |
fn GetChild _p =( | |
for c in _p.children do( | |
Append childrens c | |
GetChild c | |
) | |
) | |
GetChild $ -- 初回呼び出し | |
Select childrens -- 上で集めたオブジェクトをすべて選択 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment