Can Unity be used to build 3D architecture on the fly?

I would like to use Unity in my windows desktop software. I need to be able to pass dimensions etc. for a building to Unity and have it create a model for me based on those dimensions. This functionality is currently being handled with C++ and OpenGL. I am new to Unity and would really love it if this were possible.

Does anyone have any ideas or examples of how this can be completed if it is possible?

Thanks for your help!

2 Answers

2

You will need to learn all about creating procedural meshes : Unity - Scripting API: Mesh

When I started learning how meshes in Unity works I was surprised to see how much similar it is to OpenGL.

You should perhaps look into these examples, they helped me a lot when starting out:

http://u3d.as/content/unity-technologies/procedural-examples/3zu

Feel free to add more information about these dimensions you mentioned and how your system will work and I can give you some directions perhaps.