This commit is contained in:
JohnCorby 2022-06-30 20:33:48 -07:00
parent fca19ba895
commit 9aa6bf540c

View File

@ -83,7 +83,7 @@ namespace NewHorizons.Utility
return current.parent.GetPath() + "/" + current.name; return current.parent.GetPath() + "/" + current.name;
} }
public static GameObject FindChild(this GameObject g, string path) => g?.transform?.Find(path)?.gameObject; public static GameObject FindChild(this GameObject g, string path) => g.transform.Find(path)?.gameObject;
public static GameObject Find(string path, bool warn = true) public static GameObject Find(string path, bool warn = true)
{ {