Navigation
API > API/Editor > API/Editor/DataLayerEditor > API/Editor/DataLayerEditor/DataLayer
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- USubsystem
- UDynamicSubsystem
- UEditorSubsystem
- UDataLayerEditorSubsystem
References
| Module | DataLayerEditor |
| Header | /Engine/Source/Editor/DataLayerEditor/Public/DataLayer/DataLayerEditorSubsystem.h |
| Include | #include "DataLayer/DataLayerEditorSubsystem.h" |
Syntax
class UDataLayerEditorSubsystem :
public UEditorSubsystem,
public IActorEditorContextClient,
public FTickableGameObject
Constructors
| Type | Name | Description | |
|---|---|---|---|
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Destructor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AddActorsToDataLayer
(
const TArray< AActor* >& Actors, |
Add the actors to the DataLayer | |
| bool | AddActorsToDataLayers
(
const TArray< AActor* >& Actors, |
Add the actors to the DataLayers | |
| bool | AddActorToDataLayer
(
AActor* Actor, |
Adds the actor to the DataLayer. | |
| bool | AddActorToDataLayers
(
AActor* Actor, |
Adds the provided actor to the DataLayers. | |
| void | AddAllDataLayersTo
(
TArray< TWeakObjectPtr< UDataLayerInstance >>& OutDataLayers |
Gets all known DataLayers and appends them to the provided array | |
| bool | AddSelectedActorsToDataLayer
(
UDataLayerInstance* DataLayer |
Adds selected actors to the DataLayer. | |
| bool | AddSelectedActorsToDataLayers
(
const TArray< UDataLayerInstance* >& DataLayers |
Adds selected actors to the DataLayers. | |
| void | AddToActorEditorContext
(
UDataLayerInstance* InDataLayerInstance |
||
| void | AppendActorsFromDataLayer
(
UDataLayerInstance* DataLayer, |
Appends all the actors associated with the specified DataLayer. | |
| void | AppendActorsFromDataLayer
(
UDataLayerInstance* DataLayer, |
Appends all the actors associated with the specified DataLayer. | |
| void | AppendActorsFromDataLayers
(
const TArray< UDataLayerInstance* >& DataLayers, |
Appends all the actors associated with ANY of the specified DataLayers. | |
| void | AppendActorsFromDataLayers
(
const TArray< UDataLayerInstance* >& DataLayers, |
Appends all the actors associated with ANY of the specified DataLayers. | |
| UDataLayerInstance * | CreateDataLayerInstance
(
const FDataLayerCreationParameters& Parameters |
Creates a UDataLayerInstance Object | |
| DataLayerType * | CreateDataLayerInstance
(
AWorldDataLayers* WorldDataLayers, |
||
| void | DeleteDataLayer
(
UDataLayerInstance* DataLayerToDelete |
Deletes the provided DataLayer | |
| void | DeleteDataLayers
(
const TArray< UDataLayerInstance* >& DataLayersToDelete |
Deletes all of the provided DataLayers | |
| bool | DoesDataLayerContainSelectedActors
(
const UDataLayerInstance* DataLayer |
Returns whether the DataLayer contains one of more actors that are part of the editor selection. | |
| UDataLayerEditorSubsystem * | Get () |
||
| TArray< AActor * > | GetActorsFromDataLayer
(
UDataLayerInstance* DataLayer |
Gets all the actors associated with the specified DataLayer. | |
| TArray< AActor * > | GetActorsFromDataLayer
(
UDataLayerInstance* DataLayer, |
Gets all the actors associated with the specified DataLayer. | |
| TArray< AActor * > | GetActorsFromDataLayers
(
const TArray< UDataLayerInstance* >& DataLayers, |
Gets all the actors associated with ANY of the specified DataLayers. | |
| TArray< AActor * > | GetActorsFromDataLayers
(
const TArray< UDataLayerInstance* >& DataLayers |
Gets all the actors associated with ANY of the specified DataLayers. | |
| TArray< UDataLayerInstance * > | Returns all Data Layers | ||
| UDataLayerInstance * | GetDataLayerInstance
(
const UDataLayerAsset* DataLayerAsset |
Gets the UDataLayerInstance associated to the DataLayerAsset | |
| UDataLayerInstance * | GetDataLayerInstance
(
const FName& DataLayerInstanceName |
Gets the UDataLayerInstance Object of the DataLayer name | |
| TArray< UDataLayerInstance * > | GetDataLayerInstances
(
const TArray< UDataLayerAsset* > DataLayerAssets |
Gets the UDataLayerInstances associated to the each DataLayerAssets | |
| TArray< const UDataLayerInstance * > | GetDataLayerInstances
(
const TArray< const UDataLayerAsset* > DataLayerAssets |
||
| bool | Whether there are any deprecated DataLayerInstance found | ||
| bool | IsActorValidForDataLayer
(
AActor* Actor |
Checks to see if the specified actor is in an appropriate state to interact with DataLayers | |
| void | Set the visibility of all DataLayers to true | ||
| FOnActorDataLayersChanged & | |||
| FOnActorDataLayersEditorLoadingStateChanged & | |||
| FOnDataLayerChanged & | |||
| bool | RemoveActorFromAllDataLayers
(
AActor* Actor |
Removes an actor from all DataLayers. | |
| bool | RemoveActorFromDataLayer
(
AActor* Actor, |
Removes an actor from the specified DataLayer. | |
| bool | RemoveActorFromDataLayers
(
AActor* Actor, |
Removes the provided actor from the DataLayers. | |
| bool | RemoveActorsFromAllDataLayers
(
const TArray< AActor* >& Actors |
Removes an actor from all DataLayers. | |
| bool | RemoveActorsFromDataLayer
(
const TArray< AActor* >& Actors, |
Removes the actors from the specified DataLayer. | |
| bool | RemoveActorsFromDataLayers
(
const TArray< AActor* >& Actors, |
Remove the actors from the DataLayers | |
| void | RemoveFromActorEditorContext
(
UDataLayerInstance* InDataLayerInstance |
||
| bool | RemoveSelectedActorsFromDataLayer
(
UDataLayerInstance* DataLayer |
Removes the selected actors from the DataLayer. | |
| bool | RemoveSelectedActorsFromDataLayers
(
const TArray< UDataLayerInstance* >& DataLayers |
Removes selected actors from the DataLayers. | |
| bool | Resets user override settings of all DataLayers | ||
| bool | SelectActorsInDataLayer
(
UDataLayerInstance* DataLayer, |
Selects/de-selects actors belonging to the DataLayer. | |
| bool | SelectActorsInDataLayer
(
UDataLayerInstance* DataLayer, |
Selects/de-selects actors belonging to the DataLayer. | |
| bool | SelectActorsInDataLayers
(
const TArray< UDataLayerInstance* >& DataLayers, |
Selects/de-selects actors belonging to the DataLayers. | |
| bool | SelectActorsInDataLayers
(
const TArray< UDataLayerInstance* >& DataLayers, |
Selects/de-selects actors belonging to the DataLayers. | |
| bool | SetDataLayerIsLoadedInEditor
(
UDataLayerInstance* DataLayer, |
Changes the DataLayer's IsLoadedInEditor flag to the provided state | |
| bool | SetDataLayerShortName
(
UDataLayerInstance* InDataLayerInstance, |
Assign new unique short name to DataLayerInstance if it supports it. | |
| bool | SetDataLayersIsLoadedInEditor
(
const TArray< UDataLayerInstance* >& DataLayers, |
Changes the IsLoadedInEditor flag of the DataLayers to the provided state | |
| void | SetDataLayersVisibility
(
const TArray< UDataLayerInstance* >& DataLayers, |
Changes visibility of the DataLayers to the provided state | |
| void | SetDataLayerVisibility
(
UDataLayerInstance* DataLayer, |
Changes the DataLayer's visibility to the provided state | |
| bool | SetParentDataLayer
(
UDataLayerInstance* DataLayer, |
Sets a Parent DataLayer for a specified DataLayer | |
| bool | ToggleDataLayerIsLoadedInEditor
(
UDataLayerInstance* DataLayer, |
Toggles the DataLayer's IsLoadedInEditor flag | |
| bool | ToggleDataLayersIsLoadedInEditor
(
const TArray< UDataLayerInstance* >& DataLayers, |
Toggles the IsLoadedInEditor flag of all of the DataLayers | |
| void | ToggleDataLayersVisibility
(
const TArray< UDataLayerInstance* >& DataLayers |
Toggles the visibility of all of the DataLayers | |
| void | ToggleDataLayerVisibility
(
UDataLayerInstance* DataLayer |
Toggles the DataLayer's visibility | |
| bool | UpdateActorVisibility
(
AActor* Actor, |
Updates the provided actors visibility in the viewports | |
| bool | UpdateAllActorsVisibility
(
const bool bNotifySelectionChange, |
Updates the visibility of all actors in the viewports |
Overridden from USubsystem
| Type | Name | Description | |
|---|---|---|---|
| void | Deinitialize () |
Internal cleanup | |
| void | Initialize
(
FSubsystemCollectionBase& Collection |
Prepares for use |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | BeginDestroy () |
Called before destroying the object. |
Overridden from IActorEditorContextClient
| Type | Name | Description | |
|---|---|---|---|
| bool | CanResetContext
(
UWorld* InWorld |
||
| bool | GetActorEditorContextDisplayInfo
(
UWorld* InWorld, |
||
| TSharedRef< SWidget > | GetActorEditorContextWidget
(
UWorld* InWorld |
||
| FOnActorEditorContextClientChanged & | |||
| void | OnExecuteActorEditorContextAction
(
UWorld* InWorld, |
Overridden from FTickableGameObject
| Type | Name | Description | |
|---|---|---|---|
| UWorld * | |||
| bool | Used to determine whether the object should be ticked in the editor. |
Overridden from FTickableObjectBase
| Type | Name | Description | |
|---|---|---|---|
| TStatId | GetStatId () |
Return the stat id to use for this tickable | |
| ETickableTickType | Virtual that can be overloaded by the inheriting class. | ||
| bool | Virtual that can be overloaded by the inheriting class. | ||
| void | Tick
(
float DeltaTime |
Pure virtual that must be overloaded by the inheriting class. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FOnActorDataLayersChanged | Broadcasts whenever one or more Actors changed UDataLayerInstances | ||
| FOnActorDataLayersEditorLoadingStateChanged | Broadcasts whenever one or more DataLayers editor loading state changed | ||
| FOnDataLayerChanged | Broadcasts whenever one or more DataLayers are modified |
Typedefs
| Name | Description |
|---|---|
| FActorFilter |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| UDataLayerInstance * | CreateDataLayer
(
UDataLayerInstance* ParentDataLayer |
Use CreateDataLayerInstance with FDataLayerCreationParameters instead | |
| UDataLayerInstance * | GetDataLayer
(
const FActorDataLayer& ActorDataLayer |
Use GetDataLayerInstance instead | |
| UDataLayerInstance * | GetDataLayerFromLabel
(
const FName& DataLayerLabel |
Use GetDataLayerInstance instead | |
| bool | RenameDataLayer
(
UDataLayerInstance* DataLayer, |
Renaming is not permitted anymore | |
| bool | SetDataLayerIsDynamicallyLoadedInEditor
(
UDEPRECATED_DataLayer* DataLayer, |
Use SetDataLayerIsLoadedInEditor() instead. | |
| bool | SetDataLayersIsDynamicallyLoadedInEditor
(
const TArray< UDEPRECATED_DataLayer* >& DataLayers, |
Use SetDataLayersIsLoadedInEditor() instead. | |
| bool | ToggleDataLayerIsDynamicallyLoadedInEditor
(
UDEPRECATED_DataLayer* DataLayer, |
Use ToggleDataLayerIsLoadedInEditor() instead. | |
| bool | ToggleDataLayersIsDynamicallyLoadedInEditor
(
const TArray< UDEPRECATED_DataLayer* >& DataLayers, |
Use ToggleDataLayersIsLoadedInEditor() instead. | |
| void | UpdateActorAllViewsVisibility
(
AActor* Actor |
Per-view Data Layer visibility was removed. | |
| void | UpdateActorViewVisibility
(
FLevelEditorViewportClient* ViewportClient, |
Per-view Data Layer visibility was removed. | |
| PRAGMA_DISABLE_DEPRECATION_WARNINGSvoid | UpdateAllViewVisibility
(
UDEPRECATED_DataLayer* DataLayerThatChanged |
Per-view Data Layer visibility was removed. | |
| void | UpdatePerViewVisibility
(
FLevelEditorViewportClient* ViewportClient, |
Per-view Data Layer visibility was removed. |