mirror of
https://github.com/ConjureETS/Unity_Utils.git
synced 2026-03-24 04:50:58 +00:00
20 lines
398 B
C#
20 lines
398 B
C#
using UnityEngine;
|
|
|
|
public class UpdateChild{
|
|
|
|
public static void recursiveCallOnChild (GameObject _obj)
|
|
{
|
|
if (_obj == null)
|
|
return;
|
|
|
|
//Changes to the current object
|
|
|
|
foreach (Transform _child in _obj.transform)
|
|
{
|
|
if (_child == null)
|
|
continue;
|
|
|
|
recursiveCallOnChild(_child.gameObject);
|
|
}
|
|
}
|
|
} |