Navigation
API > API/Editor > API/Editor/UnrealEd
UUnrealEditorSubsystem Subsystem for exposing editor functionality to scripts
| Name | UUnrealEditorSubsystem |
| Type | class |
| Header File | /Engine/Source/Editor/UnrealEd/Public/Subsystems/UnrealEditorSubsystem.h |
| Include Path | #include "Subsystems/UnrealEditorSubsystem.h" |
Syntax
UCLASS (MinimalAPI)
class UUnrealEditorSubsystem : public UEditorSubsystem
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → USubsystem → UDynamicSubsystem → UEditorSubsystem → UUnrealEditorSubsystem
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UWorld * GetEditorWorld () |
Find the World in the world editor. | Subsystems/UnrealEditorSubsystem.h |
|
UWorld * GetGameWorld() |
Subsystems/UnrealEditorSubsystem.h |
|
|
bool GetLevelViewportCameraInfo
(
FVector& CameraLocation, |
Gets information about the camera position for the primary level editor viewport. | Subsystems/UnrealEditorSubsystem.h |
|
bool GetLevelViewportSize
(
FIntPoint& Size |
Returns the size of the primary level editor viewport. | Subsystems/UnrealEditorSubsystem.h |
|
bool ScreenToWorld
(
const FVector2D& ScreenPosition, |
Transforms the given 2D screen space coordinate into a 3D world-space point and direction using the primary level editor viewport. | Subsystems/UnrealEditorSubsystem.h |
|
void SetLevelViewportCameraInfo
(
FVector CameraLocation, |
Sets information about the camera position for the primary level editor viewport. | Subsystems/UnrealEditorSubsystem.h |
|
bool WorldToScreen
(
const FVector& WorldPosition, |
Transforms the given 3D world-space point into a its 2D screen space coordinate using the primary level editor viewport. | Subsystems/UnrealEditorSubsystem.h |
|