Getting Started (Python)
Blog posts and sources to get started working with Python in Unreal
References
-
Scripting the Editor using Python (https://docs.unrealengine.com/en-US/ProductionPipelines/ScriptingAndAutomation/Python/index.html)
-
Getting Started with Python in UE4 (https://sondreutheim.com/post/getting_started_with_python_in_ue4)
-
Python in Unreal Engine | Inside Unreal (https://www.youtube.com/watch?v=0guOMTiwmhk&ab_channel=UnrealEngine)
Hints
-
Enabling Developer Mode in the Python plugin settings will generate an ‘unreal.py’ file in Project/Intermediate/PythonStub. This file contains stub code for all major classes and methods in native code, in both engine and game modules. It’s intended for use by text editors to provide automatic code completion and symbol documentation, but it’s also useful to look through manually to get clues about how to override or interface with key classes.
-
BE WARNED that the 'unreal.py' stub file does not expose UClass metadata, whether methods are marked as virtual, or whether arguments are passed-by-reference (see
UPARAM(ref)
) - this information is currently only visible in C++ source code.