mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-06-16 14:17:51 +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;
|
var pType = param.ParameterType;
|
||||||
|
|
||||||
if (pType.IsByRef && !pType.IsPrimitive && pType != typeof(string))
|
if (pType.IsByRef && pType.HasElementType)
|
||||||
{
|
|
||||||
if (pType.IsArray || pType.Name.Contains("Array"))
|
|
||||||
return false;
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
{
|
||||||
pType = pType.GetElementType();
|
pType = pType.GetElementType();
|
||||||
}
|
}
|
||||||
catch
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (pType != null && (pType.IsPrimitive || pType == typeof(string)))
|
if (pType != null && (pType.IsPrimitive || pType == typeof(string)))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user