mirror of
https://github.com/ConjureETS/Unity_Utils.git
synced 2026-03-23 20:40:58 +00:00
15 lines
317 B
C#
15 lines
317 B
C#
using UnityEngine;
|
|
|
|
namespace JohnsonUtils.Utilities
|
|
{
|
|
public static class TransformExtensions
|
|
{
|
|
public static void DestroyChildren(this Transform t)
|
|
{
|
|
foreach (Transform child in t)
|
|
{
|
|
Object.Destroy(child.gameObject);
|
|
}
|
|
}
|
|
}
|
|
} |