Skip to content

Commit

Permalink
Add UnityEngine.Object to UdonExposure tree whitelist scanner
Browse files Browse the repository at this point in the history
- Also adjust the color of text on light themes a bit more
  • Loading branch information
MerlinVR committed Apr 10, 2020
1 parent d502c4a commit 93b1ed0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Assets/UdonSharp/Editor/Editors/UdonTypeExposureTree.cs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ bool ShouldHideType(System.Type type, bool rootTypeCheck = false)
if (type.IsByRef)
return ShouldHideType(type.GetElementType());

if (!rootTypeCheck && typeof(Component).IsAssignableFrom(type))
if (!rootTypeCheck && typeof(UnityEngine.Object).IsAssignableFrom(type))
return false;

if (type.IsGenericType || type.IsGenericParameter || type.IsGenericTypeDefinition)
Expand All @@ -258,7 +258,7 @@ bool ShouldHideType(System.Type type, bool rootTypeCheck = false)
shouldHideType &= ShouldHideMember(member);
}

return shouldHideType && (rootTypeCheck || !typeof(Component).IsAssignableFrom(type));
return shouldHideType && (rootTypeCheck || !typeof(UnityEngine.Object).IsAssignableFrom(type));
}

bool ShouldHideMember(MemberInfo memberInfo)
Expand Down Expand Up @@ -428,7 +428,7 @@ private void AddChildNode(TreeViewItem parentItem, MemberInfo memberInfo, ref in

if (!EditorGUIUtility.isProSkin)
{
v = Mathf.Lerp(0.8f, 0.55f, metadata.childExposure);
v = Mathf.Lerp(0.62f, 0.55f, metadata.childExposure);
}

metadata.rowColor = Color.HSVToRGB(h, s, v);
Expand Down

0 comments on commit 93b1ed0

Please sign in to comment.