Two Cats Code | Online Documentation | Discord | Unity Asset-Store

Please always refer to the online documentation for up-to-date news.

📚 UPython Feature Overview | UPython 功能总览

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 集成与跨平台部署设计。


Quick Start | 快速开始

# May need to install the package below to run the example.
pip install flask scikit-learn joblib
# Or any other package you missed.
  1. Python Server | Python 服务器
  2. Play Unity Demos | 直接开始Unity Demos
  3. Can move the Python folder out of your Unity Project

1. 🎮 Unity ↔ Python Communication Framework | Unity ↔ Python 通信框架

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 结构传递自定义消息。