Creating a Class Diagram for Unity Scripts in Visual Studio

I wanted to make a class diagram following the instructions from this post for C# using Visual Studio:

https://stackoverflow.com/questions/17191218/generate-a-class-diagram-from-visual-studio

I am stuck at this instruction:

“1. Right-click on the project and select Add → Add New Item. A. Search for ‘class’ word and NOW you can see the Class Diagram component.”

I googled and I assume I should be finding a project file in the Solution Explorer. However, it does not exist on my side.

What should I do to create the project file for all the Unity scripts?

Afaik this is a feature only available in Visual Studio Pro or Enterprise.

There are other more or less capable tools that can do that for you though. Likely even a plugin. But also documentation tools like doxygen. And paid tools like NDepend.

1 Like

I simply downloaded the Unity extension for Unity and could see the Unity project folder in the Solution Explorer.