|
1 | 1 | UnityPython
|
2 | 2 | ===========
|
3 | 3 | UnityPython is a plugin for Unity3D that provides support for running Python
|
4 |
| -code in Unity. |
| 4 | +2.x code in Unity3D on any platform which supports `System.Reflection.Emit`. |
5 | 5 |
|
6 | 6 | Special thanks to the developers of IronPython who developed the open-source
|
7 | 7 | integration of Python and .NET, which this plugin uses.
|
8 | 8 |
|
9 | 9 |
|
| 10 | +Requirements |
| 11 | +============ |
| 12 | +The build target must support `System.Reflection.Emit`. In the Unity3D docs, you |
| 13 | +can find an up-to-date detailed list of which platforms support `Emit` or not |
| 14 | +[here](https://docs.unity3d.com/Manual/ScriptingRestrictions.html). |
| 15 | + |
| 16 | +As of Unity3D 2019.4 LTS, here is a chart of platform support for `Emit`: |
| 17 | +| Platform (scripting backend) | Is `System.Reflection.Emit` supported? | |
| 18 | +|-------------------------------------|----------------------------------------| |
| 19 | +| Android (IL2CPP) | No | |
| 20 | +| Android (Mono) | Yes | |
| 21 | +| iOS (IL2CPP) | No | |
| 22 | +| PlayStation 4 (IL2CPP) | No | |
| 23 | +| PlayStation Vita (IL2CPP) | No | |
| 24 | +| Standalone (IL2CPP) | No | |
| 25 | +| Standalone (Mono) | Yes | |
| 26 | +| Switch (IL2CPP) | No | |
| 27 | +| Universal Windows Platform (IL2CPP) | No | |
| 28 | +| Universal Windows Platform (.NET) | Maybe* | |
| 29 | +| WebGL (IL2CPP) | No | |
| 30 | +| WiiU (Mono) | Yes | |
| 31 | +| XBox One (IL2CPP) | No | |
| 32 | + |
| 33 | +\* Unconfirmed, as Unity states that UWP (.NET) uses a ".NET Core class |
| 34 | + libraries subset" but fails to state what libraries are included in that |
| 35 | + subset. If you know the answer to this question, please open a PR. |
| 36 | + |
10 | 37 | Setup
|
11 | 38 | =====
|
12 | 39 | Place the source of this project anywhere in the "Assets" folder. For
|
|
0 commit comments