Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/WorldPartition > API/Runtime/Engine/WorldPartition/ContentBundle
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/WorldPartition/ContentBundle/ContentBundleContainer.h |
| Include | #include "WorldPartition/ContentBundle/ContentBundleContainer.h" |
Syntax
class FContentBundleContainer
Remarks
Stores the content bundles for a given world. In Editor builds, the content bundles can be store as 2 different types:
Editor and Non-Game Worlds:
- The content bundles are stored as FContentBundleEditor, which support editing of content bundles.
- They are stored in TSharedPtr to allow the UI to keep TWeakPtr.
Editor and Game Worlds (PIE)
- The content bundles are stored as FContentBundles, which support injections of streaming objects and cells in a runtime hash.
- They are stored in TUniquePtr.
A TVariant is use to express that behavior in editor builds. In Editor and Non-Game Worlds the variant will contain FContentBundleEditors. In Game-Worlds it will contain FContentBundles.
In Non-Editor builds, the content bundles are always stored as FContentBundles.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FContentBundleContainer
(
UWorld* WorldToInjectIn |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddReferencedObjects
(
FReferenceCollector& Collector |
||
| void | Deinitialize () |
||
| void | ForEachContentBundle
(
TFunctionRef< void(FContentBundleBase*)> Func |
||
| void | ForEachContentBundleBreakable
(
TFunctionRef< bool(FContentBundleBase*)> Func |
||
| TSharedPtr< FContentBundleEditor > | GetEditorContentBundle
(
const UContentBundleDescriptor* Descriptor |
||
| TSharedPtr< FContentBundleEditor > | GetEditorContentBundle
(
const FGuid& ContentBundleGuid |
||
| const TArray< TSharedPtr< FContentBundleEditor > > & | |||
| TArray< TSharedPtr< FContentBundleEditor > > & | |||
| TArray< TUniquePtr< FContentBundle > > & | |||
| const TArray< TUniquePtr< FContentBundle > > & | |||
| UWorld * | |||
| uint32 | |||
| void | Initialize () |
||
| bool | InjectContentBundle
(
FContentBundleClient& ContentBundleClient |
||
| bool | RemoveContentBundle
(
FContentBundleClient& ContentBundleClient |
||
| bool |
Typedefs
| Name | Description |
|---|---|
| ContentBundleEditorArray | |
| ContentBundleGameArray |