- Home /
How to use IronPython
Hello, I'm a Unity beginner trying to use IronPython in Unity 5. Is it possible to share the int, string or any kind of variable in the C#script with Python, or the other way around? If I could, please teach me an example script.
Thank you! (I've been searching it for days, and can only find how to make Python work in Unity using IronPython, not the details at all. :( )
I presume this is a plugin? Which me personally , I use no plugins. I don't thonk $$anonymous$$any people use plugins, and if they do, they might not use the same ones.
So does the plug-in have a website?
If it's not a plugin I'm sorry.
Oh, that's right. I did put some plugin in the asset. I'm sorry I didn't mention. I followed this process, and it worked, only for simple Python script! http://techartsurvival.blogspot.jp/2013/12/embedding-ironpython-in-unity-tech-art.html
Answer by Kazkadez · May 16, 2017 at 04:26 PM
It took me forever to find it, but here's an article that can help you get started. http://shrigsoc.blogspot.com/2016/07/ironpython-and-unity.html
It walks you through the initial setup and links to all of the DLL files you'll need. After that, there's plenty of resources about running IronPython on the Unity forums.
Thanks. This helped. The list of DLLs changed with the newest IronPython version, but it's basically all DLLs at C:\Program Files (x86)\IronPython 2.7
Thx and it seems a good start point for us to dig deeper on it.
Answer by frujin · Dec 31, 2020 at 02:08 PM
It's old question, but for the sake of all poor souls that might stumble here - as of 31 Dec 2020 .. this package taken from this blog is tested and works:
https://mikalikes.men/use-python-with-unity-3d-the-definitive-guide/
Can you explain how to get external libraries working? I trying setting up numpy and opencv (2.7 compatible versions), but it didn't work. I assumed that, since he said these were pip installable libraries that I could use them, but are we only able to use IronPython libraries?
Are you able to explain how to install external libraries? Namely, numpy and opencv? Since he said "install with pip" I assumed that standard python libraries would work, but I can't seem to get them working. Are only ironpython libraries allowed?
Your answer
Follow this Question
Related Questions
Cannot convert 'callable(int) as float' to 'float'. 1 Answer
Object to int 1 Answer
c# convert int to string 2 Answers
Having a GUI text as a int 3 Answers