Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by daccithechopper · Dec 14, 2016 at 08:31 PM · intsharedefine

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. :( )

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image JeffHardddyyy · Dec 16, 2016 at 11:38 AM 0
Share

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.

avatar image daccithechopper JeffHardddyyy · Dec 18, 2016 at 02:29 AM 0
Share

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

2 Replies

· Add your reply
  • Sort: 
avatar image
3

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.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image mohsalim · Mar 21, 2018 at 05:25 AM 0
Share

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

avatar image SweatyChair · Apr 23, 2019 at 01:38 AM 0
Share

Thx and it seems a good start point for us to dig deeper on it.

avatar image
1

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/

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Mr-Citizen · Feb 25 at 05:54 PM 0
Share

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?

avatar image Mr-Citizen · Feb 27 at 03:03 PM 0
Share

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

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

10 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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

How to write "if (var int = var int 2)" ? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges