The Unity 3D engine released their Flash exporter as a public beta today. Unity is a game creation tool that exports to iOS, Android, their own Web Player, and now to Flash. So you can use all of their awesome game creation tools and then be able to play it on probably 90-99% of machines out there in the browser because of the Flash plugin. Unity is not really for the beginner though. We covered the Unity 3D engine a couple days ago in our post titled How To Make Free Games With Unity 3D if you want to know more in depth information about it.

In any event I downloaded the public beat today and loaded up their Angry Bots demo project. Brought up the build settings, select Flash as the platform to target and clicked Build. It created an SWF file for me and then I loaded it up in the browser. It looks and works pretty amazing. Play it for yourself. The next thing I tried was to load up a new Flash 11 project in Flash Pro CS5.5 and then load up the Unity SWF file inside my own SWF and add it as a child to my own canvas. This worked like a charm as well. Now I have a game published out with Unity with vector Flash elements sitting on top of it. I guess this could also mean that you could load up a game built with the Pulado make your own games engine and then use Unity for cut scenes or visa versa. It would also let you build an AS3 arcade in Flash with Unity and Pulado games side by side in the same arcade. Or even how about using the MochiMedia High Scores API with Unity published to Flash? Sweet.

Here is the code I used to load up the Unity published SWF into a Flash CS5.5 project:

import flash.display.*;
import flash.net.URLRequest;

var ldr:Loader = new Loader();
var url:String = “angrybots.swf”;
var urlReq:URLRequest = new URLRequest(url);
ldr.load(urlReq);
addChild(ldr);

What this would allow you to do is load up your own preroll ad or even game play tracking code like Playtomic around your Unity published game. They also have a contest going on for the next two weeks or so to see who can create the best Unity to Flash published game so that could be interesting as well.

Head over and get the Unity 3.5 public beta and try out the Flash export feature for yourself!