AlexLemminG / Python-To-Unity-Integration

Python integration to unity
MIT License
25 stars 6 forks source link

iOS support #2

Open sekkit opened 5 years ago

sekkit commented 5 years ago

Does it support iOS il2cpp now?

AlexLemminG commented 5 years ago

Sorry, I don't have mac and can't really tell. But it's based on IronPython so if the latest version does, you could just replace libraries and check it out.

sekkit commented 5 years ago

Already checked out long time ago. The refection code/ dynamic type features are forbidden in Unity's il2cpp AOT. I think it needs some modification in terms of type generation, then it's gonna work.

sekkit commented 5 years ago

It's more practical to move to cPython's iOS build, glue the Unity's API to cPython just like what ulua/slua did. IronPython is limited in it's implementation relying on DLR feature which is incompatible with il2cpp. https://github.com/pybee/Python-Apple-support