how to find go by guid
Reply on sbox.game-
how would you approach at finding gameobject only having its guid?

image.png 24.55 KB -
Can I search by GUID in the scene for example? As a developer?
I went through manually searching through scene using text editor -
Have you tried what Zontax said? that should work
Scene.Directory.FindByGuid("c14e7405-86e3-4e4a-afb6-0c6ccd765888"); -
Yeah, my point was if it's possible to do so without writing code? In some cases you just find a gameobject with specific components or even guid (this one should not happen really)
Was curious if there such functional in the search bar or any other way
FindByGuid is a viable option when we work with code, for sure. Thanks for going an extra mile and even putting the right GUID in the code snippet, appreciate the effort -
Ahh I see. Well we could definitely add that ability to the scene search bar.
Could you create an issue on github for that? -
alright, doneedited:
https://github.com/Facepunch/sbox-issues/issues/8011You can search by guid by typing
id:before your guid in the search bar. E.gid:86378aba-add8-4a01-ae87-7b9c0688f038.
- badandbest -
You can also search by components with
t:. E.gt:SkinnedModelRenderer
And by tags withtag:. E.gtag:trigger.