Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Engine
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Engine/World.h |
Include | #include "Engine/World.h" |
Syntax
struct FLevelCollection
Remarks
Contains a group of levels of a particular ELevelCollectionType within a UWorld and the context required to properly tick/update those levels. This object is move-only.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
|||
![]() |
FLevelCollection
(
const FLevelCollection& |
||
![]() |
FLevelCollection
(
FLevelCollection&& Other |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() |
The destructor will clear the cached collection pointers in this collection's levels. |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | Adds a level to this collection and caches the collection pointer on the level for fast access. | |
![]() ![]() |
UDemoNetDriver * | Gets the demo net driver for this collection. | |
![]() ![]() |
AGameStateBase * | GetGameState () |
Gets the game state for this collection. |
![]() ![]() |
const TSet< TObjectPtr< ULevel > > & | GetLevels () |
Returns the set of levels in this collection. |
![]() ![]() |
UNetDriver * | GetNetDriver () |
Gets the net driver for this collection. |
![]() ![]() |
ULevel * | Returns this collection's PersistentLevel. | |
![]() ![]() |
ELevelCollectionType | GetType () |
Gets the type of this collection. |
![]() ![]() |
bool | IsVisible () |
Gets whether this collection is currently visible. |
![]() |
void | RemoveLevel
(
ULevel*const Level |
Removes a level from this collection and clears the cached collection pointer on the level. |
![]() |
void | SetDemoNetDriver
(
UDemoNetDriver*const InDemoNetDriver |
Sets the demo net driver for this collection. |
![]() |
void | SetGameState
(
AGameStateBase*const InGameState |
Sets the game state for this collection. |
![]() |
void | SetIsVisible
(
const bool bInIsVisible |
Sets whether this collection is currently visible. |
![]() |
void | SetNetDriver
(
UNetDriver*const InNetDriver |
Sets the net driver for this collection. |
![]() |
void | SetPersistentLevel
(
ULevel*const Level |
Sets this collection's PersistentLevel and adds it to the Levels set. |
![]() |
void | SetType
(
const ELevelCollectionType InType |
Sets the type of this collection. |
Operators
Type | Name | Description | |
---|---|---|---|
![]() |
FLevelCollection & | operator=
(
FLevelCollection&& Other |
|
![]() |
FLevelCollection & | operator=
(
const FLevelCollection& |