We are looking to improve the Scene Hierarchy search and really would like your feedback on what you would like to be able to do with a search (ticket: https://github.com/playcanvas/editor/issues/262)
There are a couple of thoughts around this, ideally we would like to be able to filter/search by
tag(s) (like we do with assets panel)
script names
components
entity name (regex?)
entity guid
template reference (which entities are instances of a template)
There’s also the consideration whether this should be complete UI driven so you can toggle tick boxes to narrow down a search, it be token driven (eg . t:render would find all entities with render components) or both?
What do you think? Please let us know your feedback below!
Sometimes we’d like to select all entities that contain some letters combination, and edit those in bulk. At the moment the filter adds some random entities in between. Would be a useful tool (fix?) to have.
These sound like useful improvements, especially the template references and script names - thanks. Here are some additions that would further enhance the experience:
An option to find entities that have a reference to the entity/asset name being searched, e.g. find all entities using a particular font, or refer to a particular camera
A toggleable “exact search” mode - the fuzzy search is great, but sometimes you want to find a specific match (searching “Frame” currently returns “Framing”, for example). Additionally, you may want to toggle case sensitivity on/off
My preference would be for the first design. I haven’t run into too many situations when I’ve needed to exclude results from a search. I think 99% of the time I’d just be using it to try and work out which entity I’d attached a script to…
I think the first one is sufficient for most of my needs. But we do use tags and I can see the second one could be useful. Perhaps hiding it under Advanced drop down would be nice to have.