unreal.EditorUtilityLibrary¶
- class unreal.EditorUtilityLibrary(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
BlueprintFunctionLibraryExpose editor utility functions to Blutilities
C++ Source:
Module: Blutility
File: EditorUtilityLibrary.h
- classmethod add_source_widget(widget_blueprint, widget_class, widget_name, widget_parent_name) Widget¶
Create a new widget and add to the specific widget blueprint’s widget tree
- Parameters:
widget_blueprint (WidgetBlueprint) – The widget blueprint to add a widget to
widget_class (type(Class)) – The widget class to add to the widget blueprint
widget_name (Name) – The name to give the new widget
widget_parent_name (Name) – The name of the existing widget that will hold the new widget. Must be an existing Panel Widget or none of if the widget tree is empty and the new widget will become the RootWidget.
- Returns:
The widget that was created and added to the widget blueprint
- Return type:
- classmethod cast_to_widget_blueprint(object) -> (branches=CastToWidgetBlueprintCases, as_widget_blueprint=WidgetBlueprint)¶
Cast to Widget Blueprint
- Parameters:
object (Object)
- Returns:
branches (CastToWidgetBlueprintCases):
as_widget_blueprint (WidgetBlueprint):
- Return type:
tuple
- classmethod convert_to_editor_utility_widget(widget_bp) None¶
Convert to Editor Utility Widget
- Parameters:
widget_bp (WidgetBlueprint)
- classmethod find_source_widget_by_name(widget_blueprint, widget_name) Widget¶
Searches the blueprint’s widget hierarchy for a widget with the specified name
- Parameters:
widget_blueprint (WidgetBlueprint)
widget_name (Name)
- Return type:
- get_actor_reference(path_to_actor) Actor¶
Attempts to find the actor specified by PathToActor in the current editor world
- classmethod get_current_content_browser_item_path() ContentBrowserItemPath¶
Gets the current content browser path if one is open, whether it is internal or virtual.
- Return type:
- classmethod get_current_content_browser_path() str or None¶
Attempts to get the path for the active content browser, returns false if there is no active content browser or if it was a virtual path
- Returns:
Whether a path was successfully returned
out_path (str): The returned path if successfully found
- Return type:
str or None
- classmethod get_selected_asset_data() Array[AssetData]¶
Gets the set of currently selected asset data
- classmethod get_selected_blueprint_classes() Array[type(Class)]¶
Gets the set of currently selected classes
- classmethod get_selected_folder_paths() Array[str]¶
Gets the path to the currently selected folder in the content browser
- classmethod get_selected_path_view_folder_paths() Array[str]¶
Returns the folders that are selected in the path view for the content browser
- classmethod get_selection_bounds() -> (origin=Vector, box_extent=Vector, sphere_radius=float)¶
Get Selection Bounds
- Returns:
origin (Vector):
box_extent (Vector):
sphere_radius (float):
- Return type:
tuple