[Ironpython-users] Integrating python with unity

Jeff Hardy jdhardy at gmail.com
Tue Sep 8 17:38:02 CEST 2015


On Sun, Sep 6, 2015 at 10:36 AM, andy <andypu at zoho.com> wrote:
> Hello,
>
> i have a nearly full developed program written in python it uses the Kivy
> framework which however does not employ a webplayer. I want to migrate it to
> a webplayer and decided to try it on unity with ironpython. This however
> does not work since the webplayer has a limited subset not the full subset
> from .net.
>
> Sadly the unity community has little interest in python and cannot really
> help with this.
>
>
> I wonder if i can get it somehow running. Usually it shows some error about
> system.reflection when i switch from .net to the subset.

I've been meaning to look into Unity for a while but haven't had the
time (like so many other things...) Supporting should be possible but
it will probably require a custom build of IronPython with the
appropriate FEATURE_* flags set in the build.xml file, and the library
references pointing at the Unity assemblies instead of the .NET ones
(similar to how Silverlight builds are supported).

>
> If i cannot get it running,
> Could i compile the python code to .net librarys and access it from  c# i
> have not worked with librarys yet, is there a good tutorial for this maybe?

No, it still requires the IronPython libraries. There's no static
compiler (again, with infinite time...)

- Jeff


More information about the Ironpython-users mailing list