Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.

some class cannot be inspected #130

Closed
1 task done
liesauer opened this issue Mar 31, 2022 · 1 comment
Closed
1 task done

some class cannot be inspected #130

liesauer opened this issue Mar 31, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@liesauer
Copy link
Contributor

Are you on the latest version of UnityExplorer?

  • Yes, I'm on the latest version of UnityExplorer.

Which release are you using?

Standalone Mono

Which game did this occur on?

Unity 2017.4.13f1

Describe the issue.

InvalidCastException: Specified cast is not valid.

UnityExplorer.UI.Widgets.UnityObjectWidget.OnBorrowed (System.Object target, System.Type targetType, UnityExplorer.Inspectors.ReflectionInspector inspector) (at <b2e90869c2bf443aad3a4f84670ace7b>:0)
UnityExplorer.UI.Widgets.UnityObjectWidget.GetUnityWidget (System.Object target, System.Type targetType, UnityExplorer.Inspectors.ReflectionInspector inspector) (at <b2e90869c2bf443aad3a4f84670ace7b>:0)
UnityExplorer.Inspectors.ReflectionInspector.SetTarget (System.Object target) (at <b2e90869c2bf443aad3a4f84670ace7b>:0)
UnityExplorer.Inspectors.ReflectionInspector.OnBorrowedFromPool (System.Object target) (at <b2e90869c2bf443aad3a4f84670ace7b>:0)
UnityExplorer.InspectorManager.CreateInspector[T] (System.Object target, System.Boolean staticReflection, UnityExplorer.CacheObject.CacheObjectBase parentObject) (at <b2e90869c2bf443aad3a4f84670ace7b>:0)
UnityExplorer.InspectorManager.Inspect (System.Type type) (at <b2e90869c2bf443aad3a4f84670ace7b>:0)
UnityExplorer.ObjectExplorer.ObjectSearch.OnCellClicked (System.Int32 dataIndex) (at <b2e90869c2bf443aad3a4f84670ace7b>:0)
UniverseLib.UI.Widgets.ButtonList.ButtonCell.<CreateContent>b__23_0 () (at <98e32bc41e754f28938041c42b582371>:0)
UniverseLib.UI.Models.ButtonRef.<.ctor>b__14_0 () (at <98e32bc41e754f28938041c42b582371>:0)
UnityEngine.Events.InvokableCall.Invoke () (at <dec06e59a8644684a220ee8e93af2a2a>:0)
UnityEngine.Events.UnityEvent.Invoke () (at <dec06e59a8644684a220ee8e93af2a2a>:0)
UnityEngine.UI.Button.Press () (at <681d4cda4a644f9d8f225b963a9b449d>:0)
UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) (at <681d4cda4a644f9d8f225b963a9b449d>:0)
UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) (at <681d4cda4a644f9d8f225b963a9b449d>:0)
UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) (at <681d4cda4a644f9d8f225b963a9b449d>:0)
UnityEngine.EventSystems.EventSystem:Update()

image

Relevant log output

No response

@liesauer liesauer added the bug Something isn't working label Mar 31, 2022
@sinai-dev
Copy link
Owner

sinai-dev commented Mar 31, 2022

Thanks, I didn't handle this correctly for static class inspection. Fixed in a986b92

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants