UEditorLevelLibrary

Utility class to do most of the common functionalities in the World Editor.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

EditorScriptingUtilities

Header

/Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Public/EditorLevelLibrary.h

Include

#include "EditorLevelLibrary.h"

Syntax

UCLASS()
class UEditorLevelLibrary : public UBlueprintFunctionLibrary

Remarks

Utility class to do most of the common functionalities in the World Editor. The editor should not be in play in editor mode.

Functions

Name Description

Public function Static UFunction BlueprintCallable, Category, Meta

void

 

EditorEndPlay()

Public function Static UFunction BlueprintCallable, Category

TArray< UWor...

 

GetPIEWorlds

(
    bool bIncludeDedicatedServer
)

Public function Static UFunction BlueprintCallable, Category

void

 

ReplaceSelectedActors

(
    const FString& InAssetPath
)

Replaces the selected Actors with the same number of a different kind of Actor using the specified factory to spawn the new Actors

Deprecated Functions

Name Description

Public function Static UFunction BlueprintCallable, Category, Meta

void

 

ClearActorSelectionSet()

The Editor Scripting Utilities the function in Editor Actor Utilities Subsystem

Public function Static UFunction BlueprintCallable, Category, Meta

TArray< clas...

 

ConvertActors

(
    const TArray< class AActor* > ...,
    TSubclassOf< class AActor > ActorCl...,
    const FString& StaticMeshPackagePa...
)

The Editor Scripting Utilities Plugin is deprecated - Use the function in Editor Actor Utilities Subsystem

Public function Static UFunction BlueprintCallable, Category, Meta

bool

 

CreateProxyMeshActor

(
    const TArray< class AStaticMeshActo...,
    const FCreateProxyMeshActorOptions ...,
    AStaticMeshActor*& OutMergedAc...
)

The Editor Scripting Utilities Plugin is deprecated - Use the function in Static Mesh Editor Subsystem

Public function Static

bool

 

CreateProxyMeshActor

(
    const TArray< class AStaticMeshActo...,
    const FEditorScriptingCreateProxyMe...,
    AStaticMeshActor*& OutMergedAc...
)

The Editor Scripting Utilities Plugin is deprecated - Use the function in Static Mesh Editor Subsystem

Public function Static UFunction BlueprintCallable, Category, Meta

bool

 

DestroyActor

(
    AActor* ActorToDestroy
)

The Editor Scripting Utilities Plugin is deprecated - Use the function in Editor Actor Utilities Subsystem

Public function Static UFunction BlueprintCallable, Category, Meta

void

 

EditorInvalidateViewports()

The Editor Scripting Utilities Plugin is deprecated - Use the function in Level Editor Subsystem

Public function Static UFunction BlueprintCallable, Category, Meta

void

 

EditorPlaySimulate()

The Editor Scripting Utilities Plugin is deprecated - Use the function in Level Editor Subsystem

Public function Static UFunction BlueprintCallable, Category, Meta

void

 

EditorSetGameView

(
    bool bGameView
)

The Editor Scripting Utilities Plugin is deprecated - Use the function in Level Editor Subsystem

Public function Static UFunction BlueprintCallable, Category, Meta

void

 

EjectPilotLevelActor()

The Editor Scripting Utilities Plugin is deprecated - Use the function in Level Editor Subsystem

Public function Static UFunction BlueprintPure, Category, Meta

AActor *

 

GetActorReference

(
    FString PathToActor
)

The Editor Scripting Utilities Plugin is deprecated - Use the function in Editor Actor Utilities Subsystem

Public function Static UFunction BlueprintCallable, Category, Meta

TArray< clas...

 

GetAllLevelActors()

The Editor Scripting Utilities Plugin is deprecated - Use the function in Editor Actor Utilities Subsystem

Public function Static UFunction BlueprintCallable, Category, Meta

TArray< clas...

 

GetAllLevelActorsComponents()

The Editor Scripting Utilities Plugin is deprecated - Use the function in Editor Actor Utilities Subsystem

Public function Static UFunction BlueprintCallable, Category, Meta

UWorld *

 

GetEditorWorld()

The Editor Scripting Utilities Plugin is deprecated - Use the function in Unreal Editor Subsystem

Public function Static UFunction BlueprintCallable, Category, Meta

UWorld *

 

GetGameWorld()

The Editor Scripting Utilities Plugin is deprecated - Use the function in Unreal Editor Subsystem

Public function Static UFunction BlueprintPure, Category, Meta

bool

 

GetLevelViewportCameraInfo

(
    FVector& CameraLocation,
    FRotator& CameraRotation
)

The Editor Scripting Utilities Plugin is deprecated - Use the function in Unreal Editor Subsystem

Public function Static UFunction BlueprintCallable, Category, Meta

TArray< clas...

 

GetSelectedLevelActors()

The Editor Scripting Utilities Plugin is deprecated - Use the function in Editor Actor Utilities Subsystem

Public function Static UFunction BlueprintCallable, Category, Meta

AActor *

 

JoinStaticMeshActors

(
    const TArray< class AStaticMeshActo...,
    const FJoinStaticMeshActorsOptions ...
)

The Editor Scripting Utilities Plugin is deprecated - Use the function in Static Mesh Editor Subsystem

Public function Static

AActor *

 

JoinStaticMeshActors

(
    const TArray< class AStaticMeshActo...,
    const FEditorScriptingJoinStaticMes...
)

The Editor Scripting Utilities Plugin is deprecated - Use the function in Static Mesh Editor Subsystem

Public function Static UFunction BlueprintCallable, Category, Meta

bool

 

LoadLevel

(
    const FString& AssetPath
)

The Editor Scripting Utilities Plugin is deprecated - Use the function in Level Editor Subsystem

Public function Static UFunction BlueprintCallable, Category, Meta

bool

 

MergeStaticMeshActors

(
    const TArray< class AStaticMeshActo...,
    const FMergeStaticMeshActorsOptions...,
    AStaticMeshActor*& OutMergedAc...
)

The Editor Scripting Utilities Plugin is deprecated - Use the function in Static Mesh Editor Subsystem

Public function Static

bool

 

MergeStaticMeshActors

(
    const TArray< class AStaticMeshActo...,
    const FEditorScriptingMergeStaticMe...,
    AStaticMeshActor*& OutMergedAc...
)

The Editor Scripting Utilities Plugin is deprecated - Use the function in Static Mesh Editor Subsystem

Public function Static UFunction BlueprintCallable, Category, Meta

bool

 

NewLevel

(
    const FString& AssetPath
)

The Editor Scripting Utilities Plugin is deprecated - Use the function in Level Editor Subsystem

Public function Static UFunction BlueprintCallable, Category, Meta

bool

 

NewLevelFromTemplate

(
    const FString& AssetPath,
    const FString& TemplateAssetPath
)

The Editor Scripting Utilities Plugin is deprecated - Use the function in Level Editor Subsystem

Public function Static UFunction BlueprintCallable, Category, Meta

void

 

PilotLevelActor

(
    AActor* ActorToPilot
)

The Editor Scripting Utilities Plugin is deprecated - Use the function in Level Editor Subsystem

Public function Static UFunction BlueprintCallable, Category, Meta

void

 

ReplaceMeshComponentsMaterials

(
    const TArray< class UMeshComponent ...,
    UMaterialInterface* MaterialTo...,
    UMaterialInterface* NewMateria...
)

The Editor Scripting Utilities Plugin is deprecated - Use the function in Static Mesh Editor Subsystem

Public function Static UFunction BlueprintCallable, Category, Meta

void

 

ReplaceMeshComponentsMaterialsOnActors

(
    const TArray< class AActor* > ...,
    UMaterialInterface* MaterialTo...,
    UMaterialInterface* NewMateria...
)

The Editor Scripting Utilities Plugin is deprecated - Use the function in Static Mesh Editor Subsystem

Public function Static UFunction BlueprintCallable, Category, Meta

void

 

ReplaceMeshComponentsMeshes

(
    const TArray< class UStaticMeshComp...,
    UStaticMesh* MeshToBeReplaced,
    UStaticMesh* NewMesh
)

The Editor Scripting Utilities Plugin is deprecated - Use the function in Static Mesh Editor Subsystem

Public function Static UFunction BlueprintCallable, Category, Meta

void

 

ReplaceMeshComponentsMeshesOnActors

(
    const TArray< class AActor* > ...,
    UStaticMesh* MeshToBeReplaced,
    UStaticMesh* NewMesh
)

The Editor Scripting Utilities Plugin is deprecated - Use the function in Static Mesh Editor Subsystem

Public function Static UFunction BlueprintCallable, Category, Meta

bool

 

SaveAllDirtyLevels()

The Editor Scripting Utilities Plugin is deprecated - Use the function in Level Editor Subsystem

Public function Static UFunction BlueprintCallable, Category, Meta

bool

 

SaveCurrentLevel()

The Editor Scripting Utilities Plugin is deprecated - Use the function in Level Editor Subsystem

Public function Static UFunction BlueprintCallable, Category, Meta

void

 

SelectNothing()

The Editor Scripting Utilities Plugin is deprecated - Use the function in Editor Actor Utilities Subsystem

Public function Static UFunction BlueprintCallable, Category, Meta

void

 

SetActorSelectionState

(
    AActor* Actor,
    bool bShouldBeSelected
)

The Editor Scripting Utilities Plugin is deprecated - Use the function in Editor Actor Utilities Subsystem

Public function Static UFunction BlueprintCallable, Category, Meta

bool

 

SetCurrentLevelByName

(
    FName LevelName
)

The Editor Scripting Utilities Plugin is deprecated - Use the function in Level Editor Subsystem

Public function Static UFunction BlueprintCallable, Category, Meta

void

 

SetLevelViewportCameraInfo

(
    FVector CameraLocation,
    FRotator CameraRotation
)

The Editor Scripting Utilities Plugin is deprecated - Use the function in Unreal Editor Subsystem

Public function Static UFunction BlueprintCallable, Category, Meta

void

 

SetSelectedLevelActors

(
    const TArray< class AActor* > ...
)

The Editor Scripting Utilities Plugin is deprecated - Use the function in Editor Actor Utilities Subsystem

Public function Static UFunction BlueprintCallable, Category, Meta

AActor *

 

SpawnActorFromClass

(
    TSubclassOf< class AActor > ActorCl...,
    FVector Location,
    FRotator Rotation,
    bool bTransient
)

The Editor Scripting Utilities Plugin is deprecated - Use the function in Editor Actor Utilities Subsystem

Public function Static UFunction BlueprintCallable, Category, Meta

AActor *

 

SpawnActorFromObject

(
    UObject* ObjectToUse,
    FVector Location,
    FRotator Rotation,
    bool bTransient
)

The Editor Scripting Utilities Plugin is deprecated - Use the function in Editor Actor Utilities Subsystem