Removed TextMeshPro dependency, using only vanilla UI now. Also fixes for games which dont ship with Default UI Shader.

This commit is contained in:
sinaioutlander
2020-11-10 20:18:14 +11:00
parent 6766a8cf4c
commit f87b06989d
23 changed files with 337 additions and 598 deletions

View File

@ -54,12 +54,22 @@ namespace UnityExplorer.Inspectors.Reflection
{
var pType = param.ParameterType;
if (pType.IsByRef && pType.HasElementType)
if (pType.IsByRef && !pType.IsPrimitive && pType != typeof(string))
{
pType = pType.GetElementType();
if (pType.IsArray || pType.Name.Contains("Array"))
return false;
try
{
pType = pType.GetElementType();
}
catch
{
return false;
}
}
if (pType.IsPrimitive || pType == typeof(string))
if (pType != null && (pType.IsPrimitive || pType == typeof(string)))
{
continue;
}

View File

@ -172,7 +172,7 @@ namespace UnityExplorer.Inspectors.Reflection
}
else if (MemInfo is PropertyInfo pi)
{
if (pi.GetAccessors()[0].IsStatic)
if (pi.GetAccessors(true)[0].IsStatic)
{
isStatic = true;
memberColor = SyntaxColors.Prop_Static;