mirror of
https://github.com/originalnicodr/CinematicUnityExplorer.git
synced 2026-10-11 09:58:02 +08:00
Update UnityExplorer from another fork (#33)
Co-authored-by: yukieiji <[email protected]> Co-authored-by: 1A3 <[email protected]>
This commit is contained in:
33 files changed
+552
-374
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user