Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/Layers
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- USubsystem
- UDynamicSubsystem
- UEditorSubsystem
- ULayersSubsystem
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Public/Layers/LayersSubsystem.h |
| Include | #include "Layers/LayersSubsystem.h" |
Syntax
class ULayersSubsystem : public UEditorSubsystem
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Destructor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AddActorsToLayer
(
const TArray< AActor* >& Actors, |
Add the actors to the named layer | |
| bool | AddActorsToLayer
(
const TArray< TWeakObjectPtr< AActor > >& Actors, |
Add the actors to the named layer | |
| bool | AddActorsToLayers
(
const TArray< AActor* >& Actors, |
Add the actors to the named layers | |
| bool | AddActorsToLayers
(
const TArray< TWeakObjectPtr< AActor > >& Actors, |
Add the actors to the named layers | |
| bool | AddActorToLayer
(
AActor* Actor, |
Adds the actor to the named layer. | |
| bool | AddActorToLayers
(
AActor* Actor, |
Adds the provided actor to the named layers. | |
| void | AddAllLayerNamesTo
(
TArray< FName >& OutLayerNames |
Gets all known layers and appends their names to the provide array | |
| void | AddAllLayersTo
(
TArray< TWeakObjectPtr< ULayer > >& OutLayers |
Gets all known layers and appends them to the provided array | |
| void | AddAllLayersTo
(
TArray< ULayer* >& OutLayers |
Gets all known layers and appends them to the provided array | |
| void | AddLevelLayerInformation
(
ULevel* Level |
Aggregates any information regarding layers associated with the level and it contents | |
| bool | AddSelectedActorsToLayer
(
const FName& LayerName |
Adds selected actors to the named layer. | |
| bool | AddSelectedActorsToLayers
(
const TArray< FName >& LayerNames |
Adds selected actors to the named layers. | |
| void | AppendActorsFromLayer
(
const FName& LayerName, |
Appends all the actors associated with the specified layer. | |
| void | AppendActorsFromLayer
(
const FName& LayerName, |
Appends all the actors associated with the specified layer. | |
| void | AppendActorsFromLayer
(
const FName& LayerName, |
Appends all the actors associated with the specified layer. | |
| void | AppendActorsFromLayers
(
const TArray< FName >& LayerNames, |
Appends all the actors associated with ANY of the specified layers. | |
| void | AppendActorsFromLayers
(
const TArray< FName >& LayerNames, |
Appends all the actors associated with ANY of the specified layers. | |
| void | AppendActorsFromLayers
(
const TArray< FName >& LayerNames, |
Appends all the actors associated with ANY of the specified layers. | |
| ULayer * | CreateLayer
(
const FName& LayerName |
Creates a ULayer Object for the named layer | |
| void | DeleteLayer
(
const FName& LayerToDelete |
Deletes the provided layer, disassociating all actors from them | |
| void | DeleteLayers
(
const TArray< FName >& LayersToDelete |
Deletes all of the provided layers, disassociating all actors from them | |
| bool | DisassociateActorFromLayers
(
AActor* Actor |
Disassociates an Actor's layers from the layer system, general used before deleting the Actor | |
| bool | DisassociateActorsFromLayers
(
const TArray< AActor* >& Actors |
Disassociates actors from the layer system, generally used before deleting the Actors | |
| void | Delegate handler for FEditorDelegates::MapChange. It internally calls LayersChanged.Broadcast. | ||
| void | Delegate handler for FEditorDelegates::RefreshLayerBrowser. | ||
| TArray< AActor * > | GetActorsFromLayer
(
const FName& LayerName, |
Gets all the actors associated with the specified layer. | |
| TArray< AActor * > | GetActorsFromLayer
(
const FName& LayerName |
Gets all the actors associated with the specified layer. | |
| TArray< AActor * > | GetActorsFromLayers
(
const TArray< FName >& LayerNames, |
Gets all the actors associated with ANY of the specified layers. | |
| TArray< AActor * > | GetActorsFromLayers
(
const TArray< FName >& LayerNames |
Gets all the actors associated with ANY of the specified layers. | |
| ULayer * | Gets the ULayer Object of the named layer | ||
| TArray< AActor * > | Find and return the selected actors. | ||
| UWorld * | GetWorld () |
Get the current UWorld object. | |
| bool | InitializeNewActorLayers
(
AActor* Actor |
Synchronizes an newly created Actor's layers with the layer system | |
| bool | IsActorValidForLayer
(
AActor* Actor |
Checks to see if the specified actor is in an appropriate state to interact with layers | |
| bool | Checks whether the ULayer Object of the provided layer name exists. | ||
| void | Set the visibility of all layers to true | ||
| FOnActorsLayersChanged & | |||
| FOnLayersChanged & | |||
| void | PostUndoRedo () |
Delegate handler for FEditorDelegates::PostUndoRedo. | |
| bool | RemoveActorFromLayer
(
AActor* Actor, |
Removes an actor from the specified layer. | |
| bool | RemoveActorFromLayers
(
AActor* Actor, |
Removes the provided actor from the named layers. | |
| bool | RemoveActorsFromLayer
(
const TArray< TWeakObjectPtr< AActor > >& Actors, |
Removes the actors from the specified layer. | |
| bool | RemoveActorsFromLayer
(
const TArray< AActor* >& Actors, |
Removes the actors from the specified layer. | |
| bool | RemoveActorsFromLayers
(
const TArray< TWeakObjectPtr< AActor > >& Actors, |
Remove the actors to the named layers | |
| bool | RemoveActorsFromLayers
(
const TArray< AActor* >& Actors, |
Remove the actors to the named layers | |
| void | RemoveLevelLayerInformation
(
ULevel* Level |
Purges any information regarding layers associated with the level and it contents | |
| bool | RemoveSelectedActorsFromLayer
(
const FName& LayerName |
Removes the selected actors from the named layer. | |
| bool | RemoveSelectedActorsFromLayers
(
const TArray< FName >& LayerNames |
Removes selected actors from the named layers. | |
| void | RemoveViewFromActorViewVisibility
(
FLevelEditorViewportClient* ViewportClient |
Removes the corresponding visibility bit from all actors (slides the later bits down 1) | |
| bool | RenameLayer
(
const FName& OriginalLayerName, |
Renames the provided originally named layer to the provided new name | |
| bool | SelectActorsInLayer
(
const FName& LayerName, |
Selects/de-selects actors belonging to the named layer. | |
| bool | SelectActorsInLayer
(
const FName& LayerName, |
Selects/de-selects actors belonging to the named layer. | |
| bool | SelectActorsInLayers
(
const TArray< FName >& LayerNames, |
Selects/de-selects actors belonging to the named layers. | |
| bool | SelectActorsInLayers
(
const TArray< FName >& LayerNames, |
Selects/de-selects actors belonging to the named layers. | |
| void | SetLayersVisibility
(
const TArray< FName >& LayerNames, |
Changes visibility of the named layers to the provided state | |
| void | SetLayerVisibility
(
const FName& LayerName, |
Changes the named layer's visibility to the provided state | |
| void | ToggleLayersVisibility
(
const TArray< FName >& LayerNames |
Toggles the visibility of all of the named layers | |
| void | ToggleLayerVisibility
(
const FName& LayerName |
Toggles the named layer's visibility | |
| bool | TryGetLayer
(
const FName& LayerName, |
Attempts to get the ULayer Object of the provided layer name. | |
| void | UpdateActorAllViewsVisibility
(
AActor* Actor |
Updates per-view visibility for the given actor for all views | |
| void | UpdateActorViewVisibility
(
FLevelEditorViewportClient* ViewportClient, |
Updates per-view visibility for the given actor in the given view | |
| 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 | |
| void | UpdateAllViewVisibility
(
const FName& LayerThatChanged |
Updates the visibility for all actors for all views. | |
| void | UpdatePerViewVisibility
(
FLevelEditorViewportClient* ViewportClient, |
Updates the per-view visibility for all actors for the given view |
Overridden from USubsystem
| Type | Name | Description | |
|---|---|---|---|
| void | Deinitialize () |
Internal cleanup | |
| void | Initialize
(
FSubsystemCollectionBase& Collection |
Prepares for use |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FOnActorsLayersChanged | Broadcasts whenever one or more Actors changed layers | ||
| FOnLayersChanged | Broadcasts whenever one or more Layers are modified |
Typedefs
| Name | Description |
|---|---|
| ActorFilter |