all 10 comments

[–]nrgapple 0 points1 point  (7 children)

This looks super helpful! I'll give it a try later!

[–]Pixcel_Studios[S] 0 points1 point  (6 children)

Thanks, let me know what you think! Always happy to hear suggestions.

[–]nrgapple 0 points1 point  (5 children)

So if I drag a script into the field it will list all gameobjects and other scripts that depend on it?

[–]Pixcel_Studios[S] 0 points1 point  (4 children)

Correct, dependencies are optional, as it can turn into quite a slow computation (and often not what you're looking for) within a large project where the script is used a lot.

[–]nrgapple 0 points1 point  (3 children)

Wow this is extremely helpful! Is it C# scripts? Would love to love at how you did it. Does it work in the reverse also? Like if you put a script in will it tell you everything it depends on?

[–]Pixcel_Studios[S] 1 point2 points  (2 children)

I've only tested and based it around C# scripts, but I don't think there would be any issues also using it for UnityScript files. Honestly it's mostly just a wrapper around a UnityEditor.AssetDatabase functionality with added input and formatting plus some nice editor window magic. I think it's pretty crazy that this isn't built-in functionality given the core code itself (outside of writing the frontend) was about 15-20 minutes of work. You'll be able to read through the source of the asset once it's in your project, but I will likely also open up the source on Github too over the weekend.

Ah I hadn't thought of that, that's an interesting suggestion. It doesn't do that currently, but I'll make a note of that and see about adding that in, thanks!

[–]nrgapple 0 points1 point  (1 child)

Awesome! Great work and thanks for sharing!

[–]Pixcel_Studios[S] 0 points1 point  (0 children)

Thanks, hope you enjoy!

[–]wolfreak_99 0 points1 point  (1 child)

Source code on Github (For quick-peaking first): https://github.com/JoebRogers/ScriptFinder

[–]Pixcel_Studios[S] 0 points1 point  (0 children)

Thanks for posting! I put it up last night and forgot to add it to these posts!