mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-06-16 22:27:45 +08:00
Don't try to get UnityObjectWidget for static class inspection
This commit is contained in:
parent
710b4ba74a
commit
a986b92963
@ -160,7 +160,8 @@ namespace UnityExplorer.Inspectors
|
|||||||
|
|
||||||
// Unity object helper widget
|
// Unity object helper widget
|
||||||
|
|
||||||
this.UnityWidget = UnityObjectWidget.GetUnityWidget(target, TargetType, this);
|
if (!StaticOnly)
|
||||||
|
this.UnityWidget = UnityObjectWidget.GetUnityWidget(target, TargetType, this);
|
||||||
|
|
||||||
// Get cache members
|
// Get cache members
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ namespace UnityExplorer.UI.Widgets
|
|||||||
|
|
||||||
this.UIRoot.transform.SetSiblingIndex(inspector.UIRoot.transform.childCount - 2);
|
this.UIRoot.transform.SetSiblingIndex(inspector.UIRoot.transform.childCount - 2);
|
||||||
|
|
||||||
UnityObjectRef = (UnityEngine.Object)target.TryCast(typeof(UnityEngine.Object));
|
UnityObjectRef = target.TryCast<UnityEngine.Object>();
|
||||||
UIRoot.SetActive(true);
|
UIRoot.SetActive(true);
|
||||||
|
|
||||||
nameInput.Text = UnityObjectRef.name;
|
nameInput.Text = UnityObjectRef.name;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user