⚠️ This repo is for developers, artists and non-dev users can use the Unreal Qt plugin
QT PySide6 support for unreal engine 5 (likely works in unreal 4)
unreal_qt
folder to Unreal's Python path. e.g.D:\Unreal Projects\MyProject\Content\Python\Lib
D:\Program Files\Epic Games\UE_5.4\Engine\Binaries\ThirdParty\Python3\Win64\Lib\site-packages
init_unreal.py
file. see docs
this guide assumes you have PySide2 installed already!
sample.py
and add it to unreal python path.# 1. SETUP - this step can automatically run on editor startup when added to your init_unreal.py
import unreal_qt
unreal_qt.setup()
# 2. CREATE WIDGET - create your qt widget
# every widget you make after setup won't block the editor & have unreal styling
from PySide6.QtWidgets import QLabel, QWidget, QVBoxLayout
w = QWidget()
layout = QVBoxLayout()
w.setLayout(layout)
layout.addWidget(QLabel("Hello World!"))
# 3. WRAP WIDGET - (optional) manage garbage collection, add darkbar, stay on top
unreal_qt.wrap(w)
# 4. SHOW WIDGET - if using stay on top this needs to run after the wrap stage
w.show()
import sample
The windows bar is by default white on Windows, and QT can't change the bar color.
With unreal_qt you can add a custom bar.