Closed i-xt closed 3 years ago
Thank you for the PR. I've found a better way to avoid this issue by simply adding the following code:
if( m_depth < 0 ) // This object is hidden from Hierarchy
return null;
To the top of this function: https://github.com/yasirkula/UnityRuntimeInspector/blob/cf9a5112b3f6b78325ff0018c15813588dbaf011/Plugins/RuntimeInspector/Scripts/RuntimeHierarchy/HierarchyData.cs#L214
Would you like to change your PR according to this or should I make this change with my own commit?
Ok, that's indeed way simpler. I'll update the PR. Just give me a few minutes.
I've updated the PR as suggested and tested again on my machine. Works fine.
Awesome, thanks! 🎉
How to reproduce the issue:
ArgumentOutOfRangeException is thrown in RuntimeHierarchy:250
This PR prevents ignored transforms and children of ignored transforms from being selected.