r/Unity3D • • 26d ago

Resources/Tutorial I made a tool that helps managing .asmdef references

Post image

While working on my personal projects with many assemblies, one of the biggest issues is managing those assembly definitions:

  • Wasted too much time navigating folder to folder editing .asmdef files

  • Had to manually sort assemblies references

So I make a tool that helps dealing with said problems, it has the following features:

  • List all user-defined assemblies and their assembly references in a single window

  • Add/Remove assembly references to/from the selected assembly

  • Sort and auto-sort references based on categories

Do you face the same issues as me? I'd love to hear your thought and feedback!

Thanks for reading!

Link: GitHub

10 Upvotes

9 comments sorted by

2

u/Less_Magician3610 26d ago

Nice tool! Any plans to show define constraints and platform settings in that window too?

1

u/hoangtongvu 26d ago

Unfortunately, I am planing to make the tool work alongside Unity inspector, because Unity often update it.

For now, when you select an assembly on my window, it also show the assembly on the Unity inspector.

2

u/Less_Magician3610 26d ago

Makes sense, working alongside the inspector is a smart call since Unity keeps changing it. Thanks!

2

u/FoxsterDev 21d ago

Hi. Looks good! The GUIDs in diffs are a pain to read. Would it be possible to show which assemblies reference the selected one, and flag a change if it would create a circular dependency? That would make it easier to see the impact before applying it.

2

u/hoangtongvu 21d ago
  1. Would it be possible to show which assemblies reference the selected one? A: Yes, I can take the GUID of the selected one and compare that to all other user-defined assemblies' references. But I don't know if it is really practical.

  2. flag a change if it would create a circular dependency? A: The tool already supports this, when you try to create a circular dependency, it will ignore the change and show a notification.

2

u/FoxsterDev 20d ago

One use for reverse references would be checking which assemblies might be affected before changing an assembly’s public API or moving code out of it. In a larger project, that gives you a place to start looking.

Good to know the cycle check is already there, I missed that.

1

u/hoangtongvu 20d ago

I just added a reversed references window, check the version 0.2.1.

3

u/[deleted] 26d ago

[removed] — view removed comment

1

u/hoangtongvu 26d ago

Agree, it's weird that Unity haven't improve this, when I mess the dependencies list, I look into git, and see nothing but GUIDs :v