Navigation
API > API/Editor > API/Editor/LevelEditor
Inheritance Hierarchy
- IModuleInterface
- IHasMenuExtensibility
- IHasToolBarExtensibility
- FLevelEditorModule
References
| Module | LevelEditor |
| Header | /Engine/Source/Editor/LevelEditor/Public/LevelEditor.h |
| Include | #include "LevelEditor.h" |
Syntax
class FLevelEditorModule :
public IModuleInterface,
public IHasMenuExtensibility,
public IHasToolBarExtensibility
Remarks
Level editor module
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Constructor, set up console commands and variables |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddCustomClassFilterToOutliner
(
TSharedRef< FCustomClassFilterData > InCustomClassFilterData |
Add a custom class filter to the outliner filter bar. | |
| void | AddCustomFilterToOutliner
(
TSharedRef< FFilterBase< const ISceneOutlinerTreeItem& > > InCustomFilter |
Add a custom filter to the outliner filter bar. These are all AND'd together | |
| void | AddCustomFilterToOutliner
(
FLevelEditorOutlinerSettings::FOutlinerFilterFactory InCreateCustomFilter |
Add a custom filter to the outliner filter bar. | |
| void | AddEditableObjectPredicate
(
const FAreObjectsEditable& InPredicate |
Add a delegate that will get called to check whether the specified objects should be editable on the details panel or not | |
| void | AddTitleBarItem
(
FName InTitleBarIdentifier, |
||
| bool | AreObjectsEditable
(
const TArray< TWeakObjectPtr< UObject > >& InObjects |
Check whether the specified objects are editable | |
| TSharedPtr< FExtender > | AssembleExtenders
(
TSharedRef< FUICommandList >& InCommandList, |
||
| TSharedPtr< SDockTab > | AttachSequencer
(
TSharedPtr< SWidget > SequencerWidget, |
Spawns a new sequencer tab if one doesn't exist already | |
| void | BroadcastActorSelectionChanged
(
const TArray< UObject* >& NewSelection, |
Called when actor selection changes | |
| void | Called when an edit command is executed on one or more components in the world | ||
| void | BroadcastElementSelectionChanged
(
const UTypedElementSelectionSet* SelectionSet, |
Called when element selection changes | |
| void | BroadcastMapChanged
(
UWorld* World, |
Called by the engine when a new map is loaded | |
| void | BroadcastOverridePropertyEditorSelection
(
const TArray< AActor* >& NewSelection, |
Called to set property editors to show the given actors, even if those actors aren't in the current selection set | |
| void | BroadcastRedrawViewports
(
bool bInvalidateHitProxies |
Called by the engine when level editing viewports need to be redrawn | |
| void | Called by the engine when level editing viewports need to take a high res screenshot | ||
| void | |||
| TSharedRef< ILevelViewportLayoutEntity > | FactoryViewport
(
FName InTypeName, |
Create an instance of a custom viewport from the specified viewport type name | |
| void | Called to focus the level editor that has a play in editor viewport | ||
| void | Called to focus the level editor viewport | ||
| TArray< FLevelEditorMenuExtender > & | |||
| TArray< TSharedPtr< FExtender > > & | |||
| TArray< FLevelEditorMenuExtender > & | |||
| TArray< TSharedPtr< FExtender > > & | |||
| TArray< FLevelEditorMenuExtender > & | |||
| TArray< FLevelEditorMenuExtender > & | |||
| TArray< FLevelEditorMenuExtender > & | |||
| TArray< FLevelEditorMenuExtender > & | |||
| TArray< FLevelEditorMenuExtender > & | |||
| TArray< FLevelViewportMenuExtender_SelectedActors > & | |||
| TArray< FLevelViewportMenuExtender_SelectedObjects > & | |||
| TArray< FLevelEditorMenuExtender > & | |||
| TArray< FLevelEditorMenuExtender > & | |||
| TSharedPtr< class SLevelViewport > | Gets the first active viewport of all the viewports. | ||
| TSharedPtr< class IAssetViewport > | Gets the first active viewport of all the viewports. | ||
| TSharedPtr< class ILevelEditor > | |||
| const TSharedRef< FUICommandList > | |||
| const FLevelEditorCommands & | Method for getting level editor commands outside of this module | ||
| TWeakPtr< class ILevelEditor > | |||
| TWeakPtr< class SDockTab > | |||
| const FLevelEditorModesCommands & | Method for getting level editor modes commands outside of this module | ||
| TSharedPtr< FLevelEditorOutlinerSettings > | Return the settings (containing the outliner filters) used to create the level editor's outliners | ||
| TSharedPtr< SDockTab > | |||
| TSharedPtr< FTabManager > | |||
| const FLevelViewportCommands & | Method for getting level viewport commands outside of this module | ||
| TSharedPtr< FExtensibilityManager > | Gets the extensibility managers for outside entities to extend static mesh editor's menus and toolbars | ||
| TSharedPtr< FExtensibilityManager > | |||
| TSharedPtr< FFilterCategory > | GetOutlinerFilterCategory
(
const FName& CategoryName |
Get the FFilterCategory attached to the given category name. | |
| const TMap< FName, FTitleBarItem > & | |||
| TSharedPtr< FExtensibilityManager > | |||
| void | GoImmersiveWithActiveLevelViewport
(
const bool bForceGameView |
Takes the first active viewport and switches it to immersive mode. | |
| void | IterateViewportTypes
(
TFunctionRef< void(FName, const FViewportTypeDefinition&)> Iter |
Iterate all registered viewport types | |
| FActorSelectionChangedEvent & | |||
| FCaptureSingleFrameAnimSequence & | |||
| FComponentsEditedEvent & | |||
| FElementSelectionChangedEvent & | |||
| FOnLevelEditorCreated & | |||
| FMapChangedEvent & | OnMapChanged () |
||
| FOverridePropertyEditorSelectionEvent & | |||
| FRedrawLevelEditingViewportsEvent & | |||
| FOnRegisterLayoutExtensions & | |||
| FOnRegisterTabs & | |||
| FTabContentChangedEvent & | |||
| FTabManagerChangedEvent & | |||
| FTakeHighResScreenShotsEvent & | |||
| FTitleBarMessagesChanged & | |||
| void | RegisterViewportType
(
FName InLayoutName, |
Register a viewport type for the level editor | |
| void | RemoveEditableObjectPredicate
(
FDelegateHandle InPredicateHandle |
Remove a delegate that was added via AddEditableObjectPredicate | |
| void | RemoveTitleBarItem
(
FName InTitleBarIdentifier |
||
| void | SetLevelEditorInstance
(
TWeakPtr< class SLevelEditor > LevelEditor |
Set the pointer to the current level Editor instance | |
| void | SetLevelEditorInstanceTab
(
TWeakPtr< class SDockTab > LevelEditorTab |
Set the pointer to the level editor tab | |
| void | SetLevelEditorTabManager
(
const TSharedPtr< SDockTab >& OwnerTab |
Create a tab manager for the level editor based on the given tab (or clears the tab manager if OwnerTab is null) | |
| void | Called before the module is unloaded, right before the module object is destroyed. | ||
| void | Starts a play in editor session using the active viewport | ||
| void | Called right after the module DLL has been loaded and the module object has been created | ||
| void | Spawns a new build and submit widget | ||
| void | Spawns a new property viewer | ||
| void | |||
| void | |||
| void | |||
| bool | Override this to set whether your module is allowed to be unloaded on the fly | ||
| void | Toggles immersive mode on the currently active level viewport | ||
| void | UnregisterViewportType
(
FName InLayoutName |
Unregister a previously registered viewport type |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FActorSelectionChangedEvent | Called when actor selection changes | ||
| FComponentsEditedEvent | Called when an edit command is executed on components in the world | ||
| FElementSelectionChangedEvent | Called when element selection changes | ||
| FMapChangedEvent | Called when a new map is loaded | ||
| FOnLevelEditorCreated | Called when a level editor widget has been created | ||
| FOnRegisterLayoutExtensions | |||
| FOnRegisterTabs | |||
| FOverridePropertyEditorSelectionEvent | Called to set property editors to show the given actors, even if those actors aren't in the current selection set | ||
| FRedrawLevelEditingViewportsEvent | Called when level editor viewports should be redrawn | ||
| FTabContentChangedEvent | Called when the tab content is changed | ||
| FTabManagerChangedEvent | Called when the tab manager is changed | ||
| FTakeHighResScreenShotsEvent | Called when a high res screenshot is requested. | ||
| FTitleBarItem | Add / Remove title bar item | ||
| FTitleBarMessagesChanged | Called when a new map is loaded |
Typedefs
| Name | Description |
|---|---|
| FCaptureSingleFrameAnimSequence | Delegate used to capture skeltal meshes to single-frame animations when 'keeping simulation changes' |
| FLevelEditorMenuExtender | Delegates to be called to extend the level viewport menus |
| FLevelViewportMenuExtender_SelectedActors | |
| FLevelViewportMenuExtender_SelectedObjects |