- Home /
Integrate python and Unity
Hello, i have a python project with Kivy as framework. Sadly there are few annoyances with Kivy so i decided to migrate to unity.
I would like to keep the back end for the game and write a new front end matching with Unity.
How could i integrate it the best? My ideas would be either to take the python code and write a c# layer to access the interface or just access unity directly from python.
Also what would i need to do to get python code running on unity and how could i access the interface?
Answer by rainbow_design · Sep 13, 2015 at 01:52 PM
I managed to use ironpython with an external c# script to start a python file. It does work with limits.
Answer by tammyhuang · Jan 18, 2017 at 10:31 PM
I have a follow up question to @rainbow_design. My understanding is that, ironpython only works for .net, however, my project would need PHP. Is there a way to have Python communicate with C# in Unity?
Answer by off99555 · Oct 29, 2018 at 07:57 AM
I've gone through a lot of trouble regarding this Unity-Python communication issue. I've tried a lot and eventually settled down to ZeroMQ approach.
See Getting Started section and clone my repository here. You are going to like it https://github.com/off99555/Unity3D-Python-Communication
Your answer

Follow this Question
Related Questions
Integrete iron python to execute external python file 1 Answer
Python and Unity 2 Answers
Heyzap Integration 1 Answer