mirror of
https://github.com/GrahamKracker/UnityExplorer.git
synced 2025-01-09 18:48:46 +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
|
||||
"Type.DeclaringMethod",
|
||||
// Causes a crash
|
||||
"Rigidbody2D.Cast",
|
||||
};
|
||||
|
||||
private static readonly HashSet<string> _methodStartsWithBlacklist = new HashSet<string>
|
||||
{
|
||||
// Pointless (handled by Properties)
|
||||
"get_",
|
||||
"set_"
|
||||
"set_",
|
||||
};
|
||||
|
||||
public override void Init()
|
||||
@ -194,6 +196,8 @@ namespace Explorer
|
||||
continue;
|
||||
}
|
||||
|
||||
// MelonLogger.Log($"Trying to cache member {signature}...");
|
||||
|
||||
try
|
||||
{
|
||||
var cached = CacheObjectBase.GetCacheObject(member, target);
|
||||
|
Loading…
x
Reference in New Issue
Block a user