| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c8df43c commit bef6e4e
6 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). | |||
| 6 | 6 | ||
| 7 | 7 | ## [Unreleased] | |
| 8 | 8 | ||
| 9 | + ### Added | ||
| 10 | + * Add a package.json file so this repository be imported in Unity using the | ||
| 11 | + package manager window. | ||
| 12 | + | ||
| 9 | 13 | ||
| 10 | 14 | ## [0.5.0] | |
| 11 | 15 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,14 +1,12 @@ | |||
| 1 | - UnityPython | ||
| 2 | - =========== | ||
| 1 | + # UnityPython | ||
| 3 | 2 | UnityPython is a plugin for Unity3D that provides support for running Python | |
| 4 | 3 | 2.x code in Unity3D on any platform which supports `System.Reflection.Emit`. | |
| 5 | 4 | ||
| 6 | 5 | Special thanks to the developers of IronPython who developed the open-source | |
| 7 | 6 | integration of Python and .NET, which this plugin uses. | |
| 8 | 7 | ||
| 9 | 8 | ||
| 10 | - Requirements | ||
| 11 | - ============ | ||
| 9 | + ## Requirements | ||
| 12 | 10 | The build target must support `System.Reflection.Emit`. In the Unity3D docs, you | |
| 13 | 11 | can find an up-to-date detailed list of which platforms support `Emit` or not | |
| 14 | 12 | [here](https://docs.unity3d.com/Manual/ScriptingRestrictions.html). | |
@@ -25,7 +23,7 @@ As of Unity3D 2019.4 LTS, here is a chart of platform support for `Emit`: | |||
| 25 | 23 | | Standalone (Mono) | Yes | | |
| 26 | 24 | | Switch (IL2CPP) | No | | |
| 27 | 25 | | Universal Windows Platform (IL2CPP) | No | | |
| 28 | - | Universal Windows Platform (.NET) | Maybe* | | ||
| 26 | + | Universal Windows Platform (.NET) | Maybe\* | | ||
| 29 | 27 | | WebGL (IL2CPP) | No | | |
| 30 | 28 | | WiiU (Mono) | Yes | | |
| 31 | 29 | | XBox One (IL2CPP) | No | | |
@@ -34,18 +32,20 @@ As of Unity3D 2019.4 LTS, here is a chart of platform support for `Emit`: | |||
| 34 | 32 | libraries subset" but fails to state what libraries are included in that | |
| 35 | 33 | subset. If you know the answer to this question, please open a PR. | |
| 36 | 34 | ||
| 37 | - Setup | ||
| 38 | - ===== | ||
| 39 | - Place the source of this project anywhere in the "Assets" folder. For | ||
| 40 | - convenience, you can use the latest `.unitypackage` release from the | ||
| 41 | - [releases][] page to do this. | ||
| 35 | + | ||
| 36 | + ## Setup | ||
| 37 | + There are three different ways to use this library in Unity: | ||
| 38 | + * Use the `Add package from git URL...` option in Unity's package manager and | ||
| 39 | + use the git URL of this repository. | ||
| 40 | + * Clone this repository into your Unity project. Or, if your Unity project is | ||
| 41 | + already a git repository, add this repository as a submodule. | ||
| 42 | + * Download and install the latest [`.unitypackage` release][releases] | ||
| 42 | 43 | ||
| 43 | 44 | Then, go to `Edit > Project Settings > Player > Other Settings > Configuration` | |
| 44 | 45 | and change `Api Compatability Level` to ".NET 4.x" | |
| 45 | 46 | ||
| 46 | 47 | ||
| 47 | - Usage | ||
| 48 | - ===== | ||
| 48 | + ## Usage | ||
| 49 | 49 | An example is provided below. More examples can be found in the | |
| 50 | 50 | `Examples/` folder. | |
| 51 | 51 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,8 @@ | |||
| 1 | + This package contains third-party software components governed by the license(s) | ||
| 2 | + indicated below: | ||
| 3 | + | ||
| 4 | + Component Name: IronPython | ||
| 5 | + | ||
| 6 | + License Type: "Apache 2.0" | ||
| 7 | + | ||
| 8 | + [IronPython License](https://github.com/IronLanguages/ironpython2/blob/master/LICENSE) | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,17 @@ | |||
| 1 | + { | ||
| 2 | + "name": "space.exodrifter.python", | ||
| 3 | + "version": "0.5.0", | ||
| 4 | + "displayName": "Python", | ||
| 5 | + "description": "IronPython wrapper library for Unity3D.", | ||
| 6 | + "unity": "2019.4", | ||
| 7 | + "unityRelease": "10f1", | ||
| 8 | + "keywords": [ | ||
| 9 | + "python" | ||
| 10 | + ], | ||
| 11 | + "author": { | ||
| 12 | + "name": "exodrifter", | ||
| 13 | + "email": "exodrifter@gmail.com", | ||
| 14 | + "url": "https://exodrifter.space" | ||
| 15 | + }, | ||
| 16 | + "type": "library" | ||
| 17 | + } | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments