Files
UnityAssetUsageDetector/.github/README.md
T
yasirkula 6939dbc088 - Completely changed how search results are displayed. They are now rendered as tree views which allows multi-selection, search, hiding desired rows, keyboard navigation, easy collapse/expand of multiple rows and more!
- Unused objects among the searched objects can now be found (experimental)
- It's now possible to search unused material properties, as well (e.g. normal map of a material that no longer uses normal mapping)
- Class/interface inheritance references can now be found (not always possible due to Unity's limitation in the used API)
- Most settings/colors can be tweaked from Project Settings
- Asset Usage Detector window can now be locked. When all open windows are locked, "Search for References" automatically opens a new window
- It's possible to configure whether clicked search results should immediately be selected in Hierarchy/Project or only on double click (or never at all)
- Optimizations and bugfixes
2022-01-01 21:40:37 +03:00

2.3 KiB

Asset Usage Detector for Unity 3D

Settings

Available on Asset Store: https://assetstore.unity.com/packages/tools/utilities/asset-usage-detector-112837

Forum Thread: https://forum.unity.com/threads/asset-usage-detector-find-references-to-an-asset-object-open-source.408134/

Discord: https://discord.gg/UJJt549AaV

Support the Developer ☕

ABOUT

This tool helps you find usages of the selected asset(s) and/or scene object(s), i.e. lists the objects that refer to them. It is possible to search for references in the Assets folder (Project view) and/or in the scene(s) of your project. You can also search for references while in Play mode!

INSTALLATION

There are 5 ways to install this plugin:

  • import AssetUsageDetector.unitypackage via Assets-Import Package
  • clone/download this repository and move the Plugins folder to your Unity project's Assets folder
  • import it from Asset Store
  • (via Package Manager) add the following line to Packages/manifest.json:
    • "com.yasirkula.assetusagedetector": "https://github.com/yasirkula/UnityAssetUsageDetector.git",
  • (via OpenUPM) after installing openupm-cli, run the following command:
    • openupm add com.yasirkula.assetusagedetector

HOW TO

  • Open Window - Asset Usage Detector window, configure the settings and hit GO!
    • or, right click an object and select Search For References
  • To learn how to interpret the search results and for more instructions, please see the included README.txt file
  • You can tweak most settings/colors via Project Settings/yasirkula/Asset Usage Detector page (on older versions, this menu is located at Preferences window)

SearchResults1

SearchResults2

KNOWN LIMITATIONS

  • Addressables aren't supported
  • static variables aren't searched
  • Resources.Load usages can't be found
  • GUIText materials aren't searched
  • Textures in Lens Flares can't be searched