Tool to generate UML diagram for Unity/C# projects. Uses Reflection API to inspect the classes, fields, methods, and constructors at runtime. Currently only supports class diagrams.
- Import UMLDiagram.unitypackage.
- Open the UMLDiagram scene.
- In the scene,in the UMLDiagram script on the UML GameObject.
- Keep ProjectUML checked if you want just the classes in the asset folder to be included in the UML.
- Else, uncheck it and add the name of the StartClass.
- Hit run. Your class diagram should be generated.
- Play around with the canvas(World Space) rect to ensure all your classes are in view.
- The panels can be dragged around in the game window.
- Then screenshot it once you are ready. Window/UMLDiagram/Take ScreenShot.
- Your diagram(PNG) will be saved in the root folder of your project.
- Association isn't always right.(Doesn't find association from inside the methods since reflection cant access it.)
- Generates class diagram for unity classes(Might not be needed).
- Doesnt support creating diagram for the whole project.
- Enable users to delete and add classes during runtime.
- Add more UML Diagrams like activity, use-case diagram.
- Highlight insights from Diagrams.
- Make canvas accomodate all classes on automatically.
- spread out class diagrams better.
- Give user flexibility to include/exclude namespaces for class generation.
- Generate Diagram using the root folder, rather than a class.