networm / FindReferencesInProject2

Find asset references super fast in Unity project. Both on macOS and Windows. Faster version: https://github.com/networm/ReferenceFinder

Home Page:https://networm.me/2018/10/28/unity-find-references/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Find References In Project 2

Find asset references super fast in Unity project. Both on macOS and Windows.

Snapshot

Usage

  1. Select asset in Project view and click Ctrl+Alt+Shfit+F.
  2. Right click asset in Project view and select Find References In Project in popup menu.

Feature

  1. It's super fast on macOS and Windows if using SSD.
  2. Show searching progress, max waiting time is 300s.
  3. Show every reference in Console and you can click message to select object.
  4. Show result in warning and summarize all references.

Speed

macOS

It only takes less than 2 seconds to complete search, it uses mdfind to utilize Spotlight index to speed up searching.

Windows

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.

Install

macOS

  1. Clone repository into Assets/Editor directory.

Job done! It just uses the mdfind built in macOS and has no other dependencies.

Windows

  1. Clone repository into Assets/Editor directory.
  2. Download ripgrep from Latest release · BurntSushi/ripgrep and extract rg.exe to Tools\FindReferencesInProject2 directory.
  3. Click Unlock file in rg.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.

Environment

  • Windows 10
  • macOS 10.13.6 and 10.14
  • Unity 2017.4.2f2 and 2018.2.0f2
  • ripgrep 0.10.0

Acknowledgement

About

Find asset references super fast in Unity project. Both on macOS and Windows. Faster version: https://github.com/networm/ReferenceFinder

https://networm.me/2018/10/28/unity-find-references/

License:MIT License


Languages

Language:C# 100.0%