getnamo/TensorFlow-Unreal

TensorFlow plugin for the Unreal Engine.

What it solves

This plugin bridges the gap between Unreal Engine and the Python machine learning ecosystem. It allows developers to run, train, and interact with TensorFlow and Keras models directly within Unreal Engine 5, enabling features like real-time image classification, audio processing, and custom AI behavior driven by Python scripts.

How it works

The plugin uses a re-architected system that runs Python in a separate, embedded process. This ensures that machine learning tasks do not interfere with the game's performance or crash the editor. You write your model logic in Python using a provided API, and the plugin handles the communication between Unreal's Blueprints or C++ code and your Python environment. It supports various environment profiles, including CPU-based TensorFlow or GPU-accelerated Keras on PyTorch.

Who it’s for

It is designed for Unreal Engine developers who want to integrate machine learning models into their projects. It is ideal for those who prefer to define their models in Python while using Unreal's visual scripting (Blueprints) or C++ to manage game-world inputs, such as textures, render targets, or audio streams.

Highlights

  • Runs Python out-of-process to prevent game thread stalls and editor crashes.
  • Supports both Blueprint and C++ integration for model training and inference.
  • Includes specialized streams for real-time data like camera render targets and audio.
  • Provides flexible environment profiles to manage dependencies and GPU support.
  • Compatible with modern Keras 3 and PyTorch backends for GPU-accelerated workflows.

Related

  • Project
  • Project
  • Project
  • Project
  • Project