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

Commit af889e6

Browse files
committed
Fix exception when inspecting UnityObject classes with static reflection
1 parent 0274022 commit af889e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/UI/Inspectors/ReflectionInspector.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ private void AddMemberTypeToggle(GameObject parent, MemberTypes type, int width)
480480

481481
private void SetUnityTargets()
482482
{
483-
if (!typeof(UnityEngine.Object).IsAssignableFrom(TargetType))
483+
if (StaticOnly || !typeof(UnityEngine.Object).IsAssignableFrom(TargetType))
484484
{
485485
unityObjectRow.SetActive(false);
486486
textureViewer.SetActive(false);

0 commit comments

Comments
 (0)