Two Cats Code | Online Documentation | Discord | Unity Asset-Store
UPython – Real-Time Python Integration for Unity
Seamlessly connect Unity and Python with power, speed, and full control.
UPython is a professional-grade Unity ↔ Python communication framework, built for developers who need real-time, bi-directional messaging, multi-client support, and custom backend logic. Whether you're building AI-powered games, VR/AR prototypes, data-driven simulations, or educational tools — UPython bridges the gap between Unity's rich 3D frontend and Python’s limitless ecosystem.
🚀 Key Features
- ⚡ Ultra-lightweight custom TCP protocol (no WebSocket overhead)
- 🧠 Supports script execution, file exchange, callback registration, and Python model inference
- 📡 Auto-discovery of Python servers in the local network
- 🌐 Handles multiple Unity clients at the same time
- 🔌 Easily extend Python backend using simple decorators
- 🧱 Includes full-featured modular Python server and Project Settings UI
- 🧪 Comes with rich demo scenes for learning and prototyping
- 🛡️ Built-in auth_token for secured connections
- 🧩 Utility tools for Base64, Texture conversion, thread-safe callbacks, and more
🎯 Ideal For
- AI integration, data visualization, procedural content
- Multi-headset VR classrooms and research
- Indie tools, teaching platforms, and Unity editor extensions