An error occurs when using the QT interface in Unreal ModuleNotFoundError: No module named 'PySide2'
. The specific performance is as follows:
- Reason: unreal python cannot read the path of Pyside2.
- Solution: Use sys to add the site-packages directory where pyside2 is located.
import unreal
import sys
sys.path.append('C:/Python27/Lib/site-packages')
from PySide2 import QtGui, QtUiTools