Update UnityExplorer from another fork (#33)

Co-authored-by: yukieiji <[email protected]>
Co-authored-by: 1A3 <[email protected]>
This commit is contained in:
authored and GitHub committed 2024-02-05 22:28:41 -03:00
1 parent d8151bd99d
commit 89ee7747e5
33 files changed
+552 -374

No files matched your search

+4 -2
View File
@@ -80,8 +80,10 @@ namespace UnityExplorer.ObjectExplorer
if (type == typeof(GameObject))
go = obj.TryCast<GameObject>();
else if (typeof(Component).IsAssignableFrom(type))
go = obj.TryCast<Component>()?.gameObject;
else if (
typeof(Component).IsAssignableFrom(type) &&
obj is Component comp)
go = comp.gameObject;
if (go)
{