I’m trying to find assets within a folder, and dir seems to find nothing.
Am I misusing the filter or is it just broken?
(I’m on Unity 6000.33f1)
Hi @msfredb7 ,
Sorry for the delay in answering your question.
This is a tricky one and it relates to the difference between the : and = comparison operator (see Unity - Manual: Search query operators for more details).
In a nutshell:
dir:Mobs : will match any assets whose path contains Mobs (at any place in the path).dir=Assets/Mobs : will match any assets that is EXACTLY in the Assets/Mobs folder.In your image, you are using the query builder which seems to be inserting dir= as its directory name proposition. This is a usability bug in my opinion.
Example of dir queries on my computer:
With results because we are partially matching the dir name:
Without any results because “Sprites” is not an exact folder:
With exact folder match:
Thanks for the detailed reply.
Should I make a bug report?
Sorry @msfredb7 I should have told you that I already filed the bug. We should take care of it in our upcoming bugbash.
Since the current User pain of this bug is pretty low I think this will land in 6.3, be backported to 6.2. But I am unsure we will backport to 6.0 though.