mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-06-26 02:02:28 +08:00
Removed TextMeshPro dependency, using only vanilla UI now. Also fixes for games which dont ship with Default UI Shader.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user