From 4fdefcb5b217f5e6d1b208479a6b6c025f7b3e1f Mon Sep 17 00:00:00 2001 From: _nebula <41904486+misternebula@users.noreply.github.com> Date: Fri, 10 Feb 2023 12:01:05 +0000 Subject: [PATCH] Update Extensions.cs --- QSB/Utility/Extensions.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/QSB/Utility/Extensions.cs b/QSB/Utility/Extensions.cs index eede0565..0b1488c5 100644 --- a/QSB/Utility/Extensions.cs +++ b/QSB/Utility/Extensions.cs @@ -31,6 +31,9 @@ public static class Extensions return copy; } + public static GameObject FindChild(this GameObject g, string childPath) => + g.transform.Find(childPath)?.gameObject; + #endregion #region MIRROR