GithubHelp home page GithubHelp logo

edcasillas / unity-missing-references-finder Goto Github PK

View Code? Open in Web Editor NEW
107.0 3.0 21.0 39 KB

A tool to find missing references in Unity

License: Apache License 2.0

C# 100.00%
unity assets unity3d unity-editor unity-scripts unity-plugin

unity-missing-references-finder's People

Contributors

edcasillas avatar tonysung avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

unity-missing-references-finder's Issues

Undetected missing reference in UnityEvent

Hey, I don't know if there is anyone still working on this, but I wanted to compare this tool to the one that I'm currently using because it couldn't find the missing references in serialized UnityEvent.
It is also the case with this tool, as shown on the screenshot below.

As we rely a lot on these in our project, I'm looking for a way to detect these missing refs.

If you have any idea

image

Invalid AssetDatabase path

When executing a search in all assets, it tries to load some assets from UnityExtensions in the folder where Unity is installed, which results in a warning like "Invalid AssetDatabase path".

This is already handled on Mac, need to apply a patch for Windows too.

Missing reference for selected GameObjects

[MenuItem("Tools/Find Missing References/In selected gameObjects", true, 54)]
  public static bool FindMissingReferencesInSelectedGameObjectsValidate() => Selection.gameObjects.Length != 0;

  [MenuItem("Tools/Find Missing References/In selected gameObjects", false, 54)]
  public static void FindMissingReferencesInSelectedGameObjects()
  {
      var selectedGameObjects = Selection.gameObjects;
      
      showInitialProgressBar($"{selectedGameObjects.Length} assets");
      
      clearConsole();
      
      int count = 0;
      
      foreach (var selectedGameObject in selectedGameObjects)
      {
          count += findMissingReferences("selected", selectedGameObject, true);
      }
      
      showFinishDialog(false, count);
  }

While, should be do while.

Hey, thank you very much for this example. It's super helpful for a project I'm working on. To help out a little bit, I wanted to point out a tiny issue in your code.

Unfortunately this bit here will skip the first property, as you are immediately calling sp.NextVisible(true) right after getting the first property. You might want to change this to do{ ... }while(sp.NextVisible(true)); so it will process the first iterator before advancing.

Open UPM support

Hello, I found that your package has an OpenUPM entry:

https://openupm.com/packages/com.ecasillas.missingrefsfinder/

but considering that README doesn't mention it, that it was "discovered" by someone else, and that it is marked "package not found" and even says:

No valid Git tag (opens new window) detected. Please contact the package owner to create at least one valid Git tag.

I can assume that this is not official support (and in fact, openupm add com.ecasillas.missingrefsfinder will fail).

Are you interested in supporting openupm?

The main benefit for my team is easy install without adding repo via git+ URL / editing Packages/manifest.json manually with git URL (which requires all team members to install standalone Git on their computer; of course they have some Git to clone the repo, but artists often use the one embedded in their Git clients).

Fortunately, this repo has no dependency so I can at least make it a submodule if needed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.