Navigation
API > API/Editor > API/Editor/UnrealEd
Holds a collection of UEditorExtension
| Name | UEditorWorldExtensionCollection |
| Type | class |
| Header File | /Engine/Source/Editor/UnrealEd/Public/EditorWorldExtension.h |
| Include Path | #include "EditorWorldExtension.h" |
Syntax
UCLASS (MinimalAPI)
class UEditorWorldExtensionCollection : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UEditorWorldExtensionCollection
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UEditorWorldExtensionCollection() |
Default constructor | EditorWorldExtension.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~UEditorWorldExtensionCollection() |
Default destructor | EditorWorldExtension.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FEditorExtensionTuple | TTuple< UEditorWorldExtension *, int32 > | List of extensions along with their reference count. | EditorWorldExtension.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Currentworld | TWeakObjectPtr< UWorld > | World context | EditorWorldExtension.h | |
| EditorExtensions | TArray< FEditorExtensionTuple > | EditorWorldExtension.h | ||
| LastEditorWorld | TWeakObjectPtr< UWorld > | After entering Simulate or PIE, this stores the counterpart editor world to the play world, so that we know this collection needs to transition back to editor world after Simulate or PIE finishes. | EditorWorldExtension.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UEditorWorldExtension * AddExtension
(
TSubclassOf< UEditorWorldExtension > EditorExtensionClass |
Checks if the passed extension already exists and creates one if it doesn't. | EditorWorldExtension.h | |
void AddExtension
(
UEditorWorldExtension* EditorExtension |
Adds an extension to the collection | EditorWorldExtension.h | |
UEditorWorldExtension * FindExtension
(
TSubclassOf< UEditorWorldExtension > EditorExtensionClass |
Find an extension based on the class | EditorWorldExtension.h | |
UWorld * GetLastEditorWorld() |
Gets the last editor world, will only be non-null when current world is a play world. | EditorWorldExtension.h | |
virtual UWorld * GetWorld() |
Gets the world from the world context | EditorWorldExtension.h | |
bool InputAxis
(
FEditorViewportClient* InViewportClient, |
Notifies all extensions of axis movement | EditorWorldExtension.h | |
bool InputKey
(
FEditorViewportClient* InViewportClient, |
Notifies all extensions of keyboard input | EditorWorldExtension.h | |
void RemoveExtension
(
UEditorWorldExtension* EditorExtension |
Removes an extension from the collection and calls Shutdown() on the extension | EditorWorldExtension.h | |
void ShowAllActors
(
const bool bShow |
Show or hide all the actors of extensions that belong to this collection. | EditorWorldExtension.h | |
void Tick
(
float DeltaSeconds |
Ticks all extensions | EditorWorldExtension.h |