shiena / Unity-PythonNet

Home Page:https://zenn.dev/shiena/articles/unity-python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unity-PythonNet

Development Environment

What is this?

This is a sample project that integrates Unity and Python.NET. Pressing the Plot button will display an image of a graph drawn using matplotlib in Python.

Project Structure

+ Assets/
  + Scenes/
    + SampleScene.unity          : Main scene using Unity UI
    + MainView.unity             : Main scene uning UI Toolkit
  + Scripts/
    + PythonLifeCycle.cs         : Python.NET initializer
    + PlotRandom.cs              : Call python script from C# using Python.NET for Unity UI
    + UIEventHandler.cs          : Call python script from C# using Python.NET for UI Toolkit
  + StreamingAssets/
    + python-3.11.3-embed-amd64/ : python runtime
    + myproject/
      + plot_random.py           : python script for graph plot
      + requirements.txt         : a list of items to be installed using pip install

About

https://zenn.dev/shiena/articles/unity-python

License:MIT License


Languages

Language:Python 97.5%Language:C 1.3%Language:C++ 0.3%Language:ShaderLab 0.3%Language:Cython 0.3%Language:JavaScript 0.1%Language:Fortran 0.1%Language:Jupyter Notebook 0.1%Language:C# 0.0%Language:HLSL 0.0%Language:CSS 0.0%Language:Roff 0.0%Language:HTML 0.0%Language:Forth 0.0%Language:Lua 0.0%