init
This commit is contained in:
16
Assets/Dreamteck/Utilities/SceneUtility.cs
Normal file
16
Assets/Dreamteck/Utilities/SceneUtility.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
|
||||
namespace Dreamteck
|
||||
{
|
||||
public static class SceneUtility
|
||||
{
|
||||
public static void GetChildrenRecursively(Transform current, ref List<Transform> transformList)
|
||||
{
|
||||
transformList.Add(current);
|
||||
foreach (Transform child in current) GetChildrenRecursively(child, ref transformList);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user