create-mesh-strip
 
The Unity script below demonstrates how to create a Mesh (in this case a Cube) purely through code.
Simply, create a new Scene, add this script to the Main Camera, and run.
 
I’ve tested this script using the ‘PC, Mac & Linux Standalone’ Platform option, in ‘Build Settings’ (it should however, work fine on other platforms).
 

 

About

Milan Prucha is a creative coder based in London. He specialises in creating interactive experiences for exhibitions and conferences. His work includes interactive installations, games, Virtual Reality and mobile/tablet apps.

Leave a Reply

Your email address will not be published. Required fields are marked *

*