Is there anyway to do this in unity 5 I remember there was a way in unity 4 but i cant find the code anymore.
There are a couple scripts for exporting obj on the Unify wiki. For example http://wiki.unity3d.com/index.php?title=ObjExporter