Yes, Unreal Engine does incorporate Python as a scripting language. Python can be used for various tasks within the Unreal Engine environment, such as automating repetitive tasks, customizing the editor, manipulating assets, and more.
Python support was introduced in Unreal Engine 4.19 and has been enhanced in subsequent releases. The integration allows developers to execute Python scripts that interact with the engine, providing a high level of control and automation capabilities.
Here is an example of how Python can be used in Unreal Engine to load an asset:
This script uses the
EditorAssetLibrary class from the
unreal module to load an asset at a specified path within the Unreal project. Once loaded, the asset can be manipulated using Python.
Unreal Engine's Python API is extensive, allowing you to access most parts of the engine. It is a powerful tool especially for technical artists and developers who wish to streamline their workflows.