Two Cats Code | Online Documentation | Discord | Unity Asset-Store
Please always refer to the online documentation for up-to-date news.
📢 Local LLM example included.
UPython is a lightweight, flexible, and extensible Unity ↔ Python communication framework designed for rapid development, AI integration, and cross-platform deployment.
UPython 是一个轻量级、灵活且高度可扩展的 Unity ↔ Python 通信框架,专为快速开发、AI 集成与跨平台部署设计。
mindmap
))Python Server((
Unity Client 1
Unity Client 2
Unity Client 3
Unity Client 4
Unity Client 5
Unity Client 6
Unity Client, etc.
mindmap
))Unity Client((
Python Server 1
Python Server 2
Python Server 3
Python Server 4
Python Server 5
Python Server 6
Python Server, etc.
# May need to install the package below to run the example.
pip install flask scikit-learn joblib numpy
# Or any other package you missed.
UPython enables real-time bidirectional communication between Unity and a Python server. It supports both local and remote connections. Developers can execute Python scripts, call remote functions, and send structured messages using JSON.
UPython 支持 Unity 与 Python 服务器之间的实时双向通信,适用于本地或远程部署。开发者可以从 Unity 执行 Python 脚本、远程调用函数,或使用 JSON 结构传递自定义消息。