Hello! Maybe there's any possibility anyone could write this action? The code looks simple, but I have no clue how to write custom actions.
The code I found which should work:
public static int ChildCountActive( this Transform t )
{
int k = 0;
foreach(Transform c in t)
{
if(c.gameObject.activeSelf)
k++;
}
return k;
}
Or maybe this action already exists? Have not found it here or in Ecosystem. (Found Count Children Advanced action here, but it does not work :/
https://hutonggames.com/playmakerforum/index.php?topic=15458.msg71576#msg71576 )
Thank you for your time!