mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-06-16 14:17:51 +08:00
Fix crash when inspecting RigidBody2D objects
This commit is contained in:
parent
11cbd24a6a
commit
065ab033c9
@ -36,13 +36,15 @@ namespace Explorer
|
|||||||
{
|
{
|
||||||
// Causes a crash
|
// Causes a crash
|
||||||
"Type.DeclaringMethod",
|
"Type.DeclaringMethod",
|
||||||
|
// Causes a crash
|
||||||
|
"Rigidbody2D.Cast",
|
||||||
};
|
};
|
||||||
|
|
||||||
private static readonly HashSet<string> _methodStartsWithBlacklist = new HashSet<string>
|
private static readonly HashSet<string> _methodStartsWithBlacklist = new HashSet<string>
|
||||||
{
|
{
|
||||||
// Pointless (handled by Properties)
|
// Pointless (handled by Properties)
|
||||||
"get_",
|
"get_",
|
||||||
"set_"
|
"set_",
|
||||||
};
|
};
|
||||||
|
|
||||||
public override void Init()
|
public override void Init()
|
||||||
@ -194,6 +196,8 @@ namespace Explorer
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// MelonLogger.Log($"Trying to cache member {signature}...");
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var cached = CacheObjectBase.GetCacheObject(member, target);
|
var cached = CacheObjectBase.GetCacheObject(member, target);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user