(Note : this isnt about the old Boo scripting, or embedding Python in Unity)
Would anyone know where I can find more information about the relatively new ‘Python For Unity’ that’s being mooted in the context of using Unity in 3D pipelines for film and animation (ie as per Unity Real-Time Development Platform | 3D, 2D, VR & AR Engine)
I have had a dig through the forums and Googled etc, but everything gets bogged down in either ancient stuff on Boo or embedding some flavour of Python, rather than this new Editor API,
For those who dont know what Im talking about, UT’s description is this:
Python for the editor is currently in a private/closed alpha state and being worked on. It will follow the usual flow of beta/experimental/preview releases as it moves along. Once it is publicly available there’ll be further communication about it and feedback will be appreciated at https://forum.unity.com/categories/betas-experimental-features.86/
Sorry if that isn’t what you are hoping for, but we’re actively working on it.
Dang it… Prepare for a future on the forums where people ask you for help, you give help, then they ask you to please rewrite your help for them in python. Over and over.
“This release is built primarily as a tool for pipeline TDs at studios. There is currently no intention to make Python a scripting language for Gameplay.”
Well, I have seen somewhere that this was mention ironpython. What I am going to say might not be related but somehow I felt like we could grab any python, build dll with ironpython, then it should be possible to use it in unity with IL2CPP (or even mono) anyway?
Yes. Any language that compiles down into .NET’s CIL (Common Intermediate Language) can be used with Unity. That said to my knowledge the only example of how to do it is the tutorial made for using F#.
Before I end the post I feel it’s important to disclaimer the above with a statement to anyone wanting to use it that unofficial languages will almost assuredly receive no support from Unity. If anything breaks with regards to code it will be solely up to you to fix it. Furthermore next to no one in this community will be able to assist you with it.
Thus in my opinion there are very few reasons why you should ever waste your time trying to use a language other than C#.
For now there is ML agents, and also some other interesting library that has no support in C# but exist in python. I have struggle implement it in C# but if I could compile it to ironpython then that might be more comfortable