Navigation
API > API/Editor > API/Editor/UnrealEd
| Name | ULayersSubsystem |
| Type | class |
| Header File | /Engine/Source/Editor/UnrealEd/Public/Layers/LayersSubsystem.h |
| Include Path | #include "Layers/LayersSubsystem.h" |
Syntax
UCLASS (MinimalAPI)
class ULayersSubsystem : public UEditorSubsystem
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → USubsystem → UDynamicSubsystem → UEditorSubsystem → ULayersSubsystem
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~ULayersSubsystem() |
Destructor | Layers/LayersSubsystem.h |
Classes
| Name | Remarks |
|---|---|
| FOnActorsLayersChanged | Broadcasts whenever one or more Actors changed layers |
| FOnLayersChanged | Broadcasts whenever one or more Layers are modified |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ActorFilter | IFilter< const TWeakObjectPtr< AActor > & > | Layers/LayersSubsystem.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ActorsLayersChanged | FOnActorsLayersChanged | Fires whenever one or more actor layer changes | Layers/LayersSubsystem.h | |
| LayersBroadcast | TSharedPtr< class FLayersBroadcast > | Auxiliary class that sets the callback function to FEditorDelegates::MapChange.Broadcast() and FEditorDelegates::RefreshLayerBrowser.Broadcast(). | Layers/LayersSubsystem.h | |
| LayersChanged | FOnLayersChanged | Fires whenever one or more layer changes | Layers/LayersSubsystem.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool AddActorsToLayer
(
const TArray< TWeakObjectPtr< AActor > >& Actors, |
Add the actors to the named layer | Layers/LayersSubsystem.h | |
bool AddActorsToLayer
(
const TArray< AActor* >& Actors, |
Add the actors to the named layer | Layers/LayersSubsystem.h |
|
virtual bool AddActorsToLayers
(
const TArray< TWeakObjectPtr< AActor > >& Actors, |
Add the actors to the named layers | Layers/LayersSubsystem.h | |
bool AddActorsToLayers
(
const TArray< AActor* >& Actors, |
Add the actors to the named layers | Layers/LayersSubsystem.h |
|
| Adds the actor to the named layer. | Layers/LayersSubsystem.h |
|
|
| Adds the provided actor to the named layers. | Layers/LayersSubsystem.h |
|
|
| Gets all known layers and appends their names to the provide array | Layers/LayersSubsystem.h |
|
|
virtual void AddAllLayersTo
(
TArray< TWeakObjectPtr< ULayer > >& OutLayers |
Gets all known layers and appends them to the provided array | Layers/LayersSubsystem.h | |
virtual void AddAllLayersTo
(
TArray< ULayer* >& OutLayers |
Gets all known layers and appends them to the provided array | Layers/LayersSubsystem.h |
|
virtual void AddLevelLayerInformation
(
ULevel* Level |
Aggregates any information regarding layers associated with the level and it contents | Layers/LayersSubsystem.h |
|
virtual bool AddSelectedActorsToLayer
(
const FName& LayerName |
Adds selected actors to the named layer. | Layers/LayersSubsystem.h |
|
| Adds selected actors to the named layers. | Layers/LayersSubsystem.h |
|
|
virtual void AppendActorsFromLayer
(
const FName& LayerName, |
Appends all the actors associated with the specified layer. | Layers/LayersSubsystem.h | |
void AppendActorsFromLayer
(
const FName& LayerName, |
Appends all the actors associated with the specified layer. | Layers/LayersSubsystem.h |
|
void AppendActorsFromLayer
(
const FName& LayerName, |
Appends all the actors associated with the specified layer. | Layers/LayersSubsystem.h | |
virtual void AppendActorsFromLayers
(
const TArray< FName >& LayerNames, |
Appends all the actors associated with ANY of the specified layers. | Layers/LayersSubsystem.h | |
void AppendActorsFromLayers
(
const TArray< FName >& LayerNames, |
Appends all the actors associated with ANY of the specified layers. | Layers/LayersSubsystem.h | |
void AppendActorsFromLayers
(
const TArray< FName >& LayerNames, |
Appends all the actors associated with ANY of the specified layers. | Layers/LayersSubsystem.h |
|
| Creates a ULayer Object for the named layer | Layers/LayersSubsystem.h |
|
|
virtual void Deinitialize() |
Internal cleanup | Layers/LayersSubsystem.h | |
virtual void DeleteLayer
(
const FName& LayerToDelete |
Deletes the provided layer, disassociating all actors from them | Layers/LayersSubsystem.h |
|
| Deletes all of the provided layers, disassociating all actors from them | Layers/LayersSubsystem.h |
|
|
virtual bool DisassociateActorFromLayers
(
AActor* Actor |
Disassociates an Actor's layers from the layer system, general used before deleting the Actor | Layers/LayersSubsystem.h |
|
| Disassociates actors from the layer system, generally used before deleting the Actors | Layers/LayersSubsystem.h |
|
|
void EditorMapChange() |
Delegate handler for FEditorDelegates::MapChange. It internally calls LayersChanged.Broadcast. | Layers/LayersSubsystem.h |
|
void EditorRefreshLayerBrowser () |
Delegate handler for FEditorDelegates::RefreshLayerBrowser. | Layers/LayersSubsystem.h |
|
TArray< AActor * > GetActorsFromLayer
(
const FName& LayerName |
Gets all the actors associated with the specified layer. | Layers/LayersSubsystem.h |
|
TArray< AActor * > GetActorsFromLayer
(
const FName& LayerName, |
Gets all the actors associated with the specified layer. | Layers/LayersSubsystem.h | |
TArray< AActor * > GetActorsFromLayers
(
const TArray< FName >& LayerNames, |
Gets all the actors associated with ANY of the specified layers. | Layers/LayersSubsystem.h | |
TArray< AActor * > GetActorsFromLayers
(
const TArray< FName >& LayerNames |
Gets all the actors associated with ANY of the specified layers. | Layers/LayersSubsystem.h |
|
| Gets the ULayer Object of the named layer | Layers/LayersSubsystem.h |
|
|
| Find and return the selected actors. | Layers/LayersSubsystem.h |
|
|
UWorld * GetWorld() |
Get the current UWorld object. | Layers/LayersSubsystem.h |
|
virtual void Initialize
(
FSubsystemCollectionBase& Collection |
Prepares for use | Layers/LayersSubsystem.h | |
virtual bool InitializeNewActorLayers
(
AActor* Actor |
Synchronizes an newly created Actor's layers with the layer system | Layers/LayersSubsystem.h |
|
virtual bool IsActorValidForLayer
(
AActor* Actor |
Checks to see if the specified actor is in an appropriate state to interact with layers | Layers/LayersSubsystem.h |
|
bool IsLayer
(
const FName& LayerName |
Checks whether the ULayer Object of the provided layer name exists. | Layers/LayersSubsystem.h |
|
virtual void MakeAllLayersVisible() |
Set the visibility of all layers to true | Layers/LayersSubsystem.h |
|
virtual FOnActorsLayersChanged & OnActorsLayersChanged() |
Layers/LayersSubsystem.h | ||
virtual FOnLayersChanged & OnLayersChanged() |
Layers/LayersSubsystem.h | ||
void PostUndoRedo () |
Delegate handler for FEditorDelegates::PostUndoRedo. | Layers/LayersSubsystem.h | |
| Removes an actor from the specified layer. | Layers/LayersSubsystem.h |
|
|
| Removes the provided actor from the named layers. | Layers/LayersSubsystem.h |
|
|
virtual bool RemoveActorsFromLayer
(
const TArray< TWeakObjectPtr< AActor > >& Actors, |
Removes the actors from the specified layer. | Layers/LayersSubsystem.h | |
bool RemoveActorsFromLayer
(
const TArray< AActor* >& Actors, |
Removes the actors from the specified layer. | Layers/LayersSubsystem.h |
|
bool RemoveActorsFromLayers
(
const TArray< AActor* >& Actors, |
Remove the actors to the named layers | Layers/LayersSubsystem.h |
|
virtual bool RemoveActorsFromLayers
(
const TArray< TWeakObjectPtr< AActor > >& Actors, |
Remove the actors to the named layers | Layers/LayersSubsystem.h | |
virtual void RemoveLevelLayerInformation
(
ULevel* Level |
Purges any information regarding layers associated with the level and it contents | Layers/LayersSubsystem.h |
|
virtual bool RemoveSelectedActorsFromLayer
(
const FName& LayerName |
Removes the selected actors from the named layer. | Layers/LayersSubsystem.h |
|
| Removes selected actors from the named layers. | Layers/LayersSubsystem.h |
|
|
virtual void RemoveViewFromActorViewVisibility
(
FLevelEditorViewportClient* ViewportClient |
Removes the corresponding visibility bit from all actors (slides the later bits down 1) | Layers/LayersSubsystem.h | |
| Renames the provided originally named layer to the provided new name | Layers/LayersSubsystem.h |
|
|
bool SelectActorsInLayer
(
const FName& LayerName, |
Selects/de-selects actors belonging to the named layer. | Layers/LayersSubsystem.h |
|
virtual bool SelectActorsInLayer
(
const FName& LayerName, |
Selects/de-selects actors belonging to the named layer. | Layers/LayersSubsystem.h | |
bool SelectActorsInLayers
(
const TArray< FName >& LayerNames, |
Selects/de-selects actors belonging to the named layers. | Layers/LayersSubsystem.h |
|
virtual bool SelectActorsInLayers
(
const TArray< FName >& LayerNames, |
Selects/de-selects actors belonging to the named layers. | Layers/LayersSubsystem.h | |
| Changes visibility of the named layers to the provided state | Layers/LayersSubsystem.h |
|
|
virtual void SetLayerVisibility
(
const FName& LayerName, |
Changes the named layer's visibility to the provided state | Layers/LayersSubsystem.h |
|
| Toggles the visibility of all of the named layers | Layers/LayersSubsystem.h |
|
|
virtual void ToggleLayerVisibility
(
const FName& LayerName |
Toggles the named layer's visibility | Layers/LayersSubsystem.h |
|
| Attempts to get the ULayer Object of the provided layer name. | Layers/LayersSubsystem.h |
|
|
virtual void UpdateActorAllViewsVisibility
(
AActor* Actor |
Updates per-view visibility for the given actor for all views | Layers/LayersSubsystem.h |
|
virtual void UpdateActorViewVisibility
(
FLevelEditorViewportClient* ViewportClient, |
Updates per-view visibility for the given actor in the given view | Layers/LayersSubsystem.h | |
virtual bool UpdateActorVisibility
(
AActor* Actor, |
Updates the provided actors visibility in the viewports | Layers/LayersSubsystem.h |
|
virtual bool UpdateAllActorsVisibility
(
const bool bNotifySelectionChange, |
Updates the visibility of all actors in the viewports | Layers/LayersSubsystem.h |
|
virtual void UpdateAllViewVisibility
(
const FName& LayerThatChanged |
Updates the visibility for all actors for all views. | Layers/LayersSubsystem.h |
|
virtual void UpdatePerViewVisibility
(
FLevelEditorViewportClient* ViewportClient, |
Updates the per-view visibility for all actors for the given view | Layers/LayersSubsystem.h |