Find asset references super fast in Unity project. Both on macOS and Windows.
- Select asset in Project view and click
Ctrl+Alt+Shfit+F
. - Right click asset in Project view and select
Find References In Project
in popup menu.
- It's super fast on macOS and Windows if using SSD.
- Show searching progress, max waiting time is 300s.
- Show every reference in Console and you can click message to select object.
- Show result in warning and summarize all references.
It only takes less than 2 seconds to complete search, it uses mdfind
to utilize Spotlight index to speed up searching.
It use the fastest ripgrep
to search text and do a lot of optimization on file size and count.
So it would takes about 5 seconds to search ~700M and ~7000 files on SSD.
- Clone repository into
Assets/Editor
directory.
Job done! It just uses the mdfind
built in macOS and has no other dependencies.
- Clone repository into
Assets/Editor
directory. - Download
ripgrep
from Latest release · BurntSushi/ripgrep and extractrg.exe
toTools\FindReferencesInProject2
directory. - Click
Unlock file
inrg.exe
Properties, or you will find it takes too long time to start first time.
Note: It seems that x86_64-pc-windows-msvc
has a smaller size in ripgrep
release page.
- Windows 10
- macOS 10.13.6 and 10.14
- Unity 2017.4.2f2 and 2018.2.0f2
- ripgrep 0.10.0