title: Using a C# script export a GameObject as an FBX during runtime
body: <p>I'm trying to build a room editor.
  So users have placed furniture, rotated them etc.
  All the objects are saved as children of a Room parent.
  I need to program in functionality to now save the Room along with its children as an FBX or OBJ so it can be sent and be viewed via any 3D viewing software or even opening it up in something like blender (Textures aren't a concern yet)</p>
  <p>I tried looking at using the Streamwriter but that doesnt seem to be capable of it.
  I've looked at <a href="https://docs.unity3d.com/ScriptReference/PrefabUtility.html" rel="nofollow noreferrer">https://docs.unity3d.com/ScriptReference/PrefabUtility.html</a> but this doesnt export the prefabs but instead just stores them in project files.</p>
  <p>Does anyone have any idea or suggestions of what i could use to go about this</p>