View Full Version : Unity and Pascal

08-05-2012, 10:02 PM
Trying out Oxygene for Java I couldn't help but think if it was possible to use Prism (Oxygene for .NET) along with the amazing Unity Engine (http://"http://www.unity3d.com).

So I've downloaded the Prism Trial and it turns out it is really easy to use Pascal as scripting language for Unity. You simply have to reference two DLLs from Unity and compile your scripts into a DLL which can be added to a Unity project. It is that simple :)

I recorded a short video demonstrating the process. It's nothing special but it show how easy it is to use Prism and Unity together.


Next step is to download the Android SDK and see if Unity and Prism will work on my phone with no problems.


I've tested it on my Samsung Galaxy II and as expected it works without any hassles. So basically you can create games for Windows, Mac, Android, iOS, Flash and Unity Web Player (And the Wii, PS3 and Xbox360 if you got the dough ;)) using the same engine and Pascal. I must admit I can't give a good reason to use Pascal instead of the built-in C# right now besides the fact that we're Pascal users but it's pretty cool IMO that we have the option to use Pascal with Unity.

09-05-2012, 08:31 AM
Would this also work with the command line only version of Oxygene for .NET?

09-05-2012, 11:35 AM
I haven't tried the command line only version but I can't see why it shouldn't work. As long as you can compile your code into a DLL it should work just fine.