Search Unity

A tool for finding asset references in all scenes

Discussion in 'Scripting' started by seldom, Feb 15, 2015.

  1. seldom

    seldom

    Joined:
    Dec 4, 2013
    Posts:
    118
    Checking all scenes for references before deleting an asset is tedious and error prone, so I made a tool to automate the scene-analysis process. Here's a quick demo:



    And here's the code: https://github.com/seldomU/AssetReferenceBackend/archive/master.zip
    It's a back-end (or plugin) for the attached tool, which is a free demo of the Relations inspector.

    To get started: put the code inside an Editor folder, open the tool through Window/Relations inspector, and select AssetReferenceBackend from the toolbar dropdown. Now you're ready to drag assets into the window.
    Enjoy ;)
     

    Attached Files:

    AA-Matt and Kropti67 like this.
  2. seldom

    seldom

    Joined:
    Dec 4, 2013
    Posts:
    118
    It's high time for an update, the tool has changed a lot over the last year. Now there are two kinds of graphs:
    • DependencyBackend shows all objects that the target depends on, similar to Unity's Select dependencies command, but it also displays the dependencies among those objects
    • AssetReferenceBackend still shows all objects that depend on the target, similar to Unity's Find references in Scene command, except that it includes all scenes and shows the whole chain of intermediate references
    Check it out in moving picture and still picture:
    CanvasDependencies.png

    The code is still on GitHub and RelationsInspector is now on the asset store.
     
    TopiaTeam likes this.