mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-06-16 06:08:16 +08:00
Revert a temporary attempt at fixing a crash
This commit is contained in:
parent
f87b06989d
commit
ca90b64378
@ -54,20 +54,10 @@ namespace UnityExplorer.Inspectors.Reflection
|
||||
{
|
||||
var pType = param.ParameterType;
|
||||
|
||||
if (pType.IsByRef && !pType.IsPrimitive && pType != typeof(string))
|
||||
{
|
||||
if (pType.IsArray || pType.Name.Contains("Array"))
|
||||
return false;
|
||||
|
||||
try
|
||||
if (pType.IsByRef && pType.HasElementType)
|
||||
{
|
||||
pType = pType.GetElementType();
|
||||
}
|
||||
catch
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (pType != null && (pType.IsPrimitive || pType == typeof(string)))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user