Skip to main content

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 your Plugins folder
    • select the file, in your Plugins, and in 'Inspector' unselect 'validate references', and click 'Apply'
  • from this repo, copy PeacefulPie.dll into your Plugins 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

Project details


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.2.0.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

peaceful_pie-0.2.0-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page