Control Unity from Python!
Project description
Peaceful Pie
Connect Python with Unity for reinforcement learning!
Installation
You need to install both into Unity project, and into your Python environment.
In Unity
- in Unity, in your project's "Assets" folder, create a "Plugins" folder, if it doesn't already exist
- First install AustinHarris.JsonRPC:
- Download https://www.nuget.org/api/v2/package/AustinHarris.JsonRpc/1.2.3
- rename to have filename suffix be
.zip
(you might need to turn on options to see all file extensions) - unzip the resulting zip file
- copy
lib/netstandard2.1/AustinHarris.JsonRpc.dll
into yourPlugins
folder - select the file, in your Plugins, and in 'Inspector' unselect 'validate references', and click 'Apply'
- from this repo, copy
PeacefulPie.dll
into yourPlugins
folder- select the file, in your Plugins, and in 'Inspector' unselect 'validate references', and click 'Apply'
- if on Mac silicon, make sure to change 'CPU' to 'Any CPU', for each dll, clicking 'Apply' each time
You should be good to go :)
In Python
pip install -U peaceful-pie
Requirements
- currently tested with:
- python 3.10
- Unity 2021.3.16.f1
- please create an issue if your preferred platform is not supported (I'm guessing I might need to downgrade Python a little? Let me know!)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
peaceful_pie-0.3.0.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for peaceful_pie-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6fc91a46173fde1994935f6b7c84de49f2399305636c0d0f6b6f92c85593ab7 |
|
MD5 | 17f2eb7e4c32e0002752d6b80d084aaf |
|
BLAKE2b-256 | cea23a8f264a9be21ea53711662cb31ddff9eeb13c7c215cb29c16245f9b0ab8 |