yasirkula / UnityRuntimeInspector

Runtime Inspector and Hierarchy solution for Unity for debugging and runtime editing purposes
MIT License
1.68k stars 135 forks source link

Search fallback #52

Closed SiMaLaoShi closed 11 months ago

SiMaLaoShi commented 1 year ago

After the search is complete, deleting the search content does not return to the original location

yasirkula commented 1 year ago

Hi, why did you close this Issue?

SiMaLaoShi commented 1 year ago

I can't reproduce it in another version

SiMaLaoShi commented 1 year ago

99ba212a8fae07e40a25fa6e267c3e22 Let me see if I can reproduce it

SiMaLaoShi commented 1 year ago

image Just manually delete a GameObject and search for it

SiMaLaoShi commented 1 year ago

Sorry, can't give you a demo, this error only happens in my project

SiMaLaoShi commented 1 year ago

NewBehaviourScript.txt hi, I made a test script image

yasirkula commented 1 year ago

Thank you for sharing your findings! Though I'll fix this issue in the next release, it won't arrive anytime soon so I'd recommend updating this function manually as follows:

public override Transform GetChild( int index )
{
    GameObject rootObject = rootObjects[index];
    return rootObject ? rootObject.transform : null;
}
SiMaLaoShi commented 1 year ago

Good