Archive for June, 2013

How to use the System.Windows.Forms.dll inside Unity (Windows Only).

June 11 | 13

So I have been playing around with .Net dlls inside unity and wanted to check some functions inside the System.Windows.Forms.dll in order to access the primary monitor screen size but found out that Unity’s .Net embebed runtime doesnt include the System.Windows.Forms.dll so here is a way to include it in your project.

Go and grab System.Windows.Forms.dll and System.Deployment.dll from “C:/Windows/Microsoft.NET/Framework/v2.0.50727/” and copy those dlls to your project at “Assets/Plugins/” , after that, you are almost done, you just need to go to “Edit -> Project Settings -> Player” in Unity and go to the “Other Settings”  tab and under the Optimization label on the “API Compatibility Level”  just select “.Net 2.0″ instead of “.Net 2.0 Subset”.

Then you are good to go and use the dll functions, just create a small script like this to check it out:

I havent tested that much if this will work on other platforms will give you warnings or problems but seemed to work for me, if you have any problems making it work let me know.

ProPivot Modifier – Mofify Malformed pivots in Unity.

June 11 | 13

Sometimes when I get a mesh from an artist, the pivots of the mesh are just malformed, so I created a small basic utility to organize the pivots of any given mesh.

I just named this small utility ProPivot modifier; this editor utility  lets you modify your pivot points that come from any 3rd party modeling software and re-organize them so you can work with the pivots correctly instead using the old “hack” of adding Empty GameObjects to organize the pivot orientation of your meshes. Pivots can be rotated, moved and centered by average or bounding box.

If you want to get the utility you can get it from:

For better understanding of what this utility does just watch the demo video on how to use it:

If you have more comments or suggestion on this utility, just let me know via comments 😉