unreal.LevelEditorSubsystem
¶
- class unreal.LevelEditorSubsystem(outer: Optional[Object] = None, name: Union[Name, str] = 'None')¶
Bases:
EditorSubsystem
ULevelEditorSubsystem Subsystem for exposing Level Editor related functionality to scripts
C++ Source:
Module: LevelEditor
File: LevelEditorSubsystem.h
- build_light_maps(quality=LightingBuildQuality.QUALITY_PRODUCTION, with_reflection_captures=False) bool ¶
Build Light Maps and optionally the reflection captures.
- Parameters:
quality (LightingBuildQuality) – One of the enum LightingBuildQuality value. Default is Quality_Production.
with_reflection_captures (bool) – Build the related reflection captures after building the light maps.
- Returns:
True if build was successful.
- Return type:
- eject_pilot_level_actor(viewport_config_key='None') None ¶
Eject Pilot Level Actor
- Parameters:
viewport_config_key (Name) –
- get_current_level() Level ¶
Get the current level used by the world editor.
- Returns:
The current level
- Return type:
- get_selection_set() TypedElementSelectionSet ¶
Get the level Editor typed element selection set for the current world
- Return type:
- load_level(asset_path) bool ¶
Close the current Persistent Level (without saving it). Loads the specified level.
- new_level(asset_path) bool ¶
Close the current Persistent Level (without saving it). Create a new blank Level and save it. Load the new created level.
- new_level_from_template(asset_path, template_asset_path) bool ¶
Close the current Persistent Level (without saving it). Create a new Level base on another level and save it. Load the new created level.
- save_all_dirty_levels() bool ¶
Saves all Level currently loaded by the World Editor.
- Returns:
True if the operation succeeds.
- Return type:
- save_current_level() bool ¶
Saves the specified Level. Must already be saved at lease once to have a valid path.
- Returns:
True if the operation succeeds.
- Return type: