edcasillas / unity-missing-references-finder Goto Github PK
View Code? Open in Web Editor NEWA tool to find missing references in Unity
License: Apache License 2.0
A tool to find missing references in Unity
License: Apache License 2.0
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
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.
[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);
}
I can not find it in https://docs.unity3d.com/ScriptReference/SerializedProperty.html. Could you please tell me the meaning
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.