Navigation
API > API/Runtime > API/Runtime/Engine
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.
| Name | FContentBundleContainer |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/WorldPartition/ContentBundle/ContentBundleContainer.h |
| Include Path | #include "WorldPartition/ContentBundle/ContentBundleContainer.h" |
Syntax
class FContentBundleContainer
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FContentBundleContainer
(
UWorld* WorldToInjectIn |
WorldPartition/ContentBundle/ContentBundleContainer.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FContentBundleContainer() |
WorldPartition/ContentBundle/ContentBundleContainer.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ContentBundleEditorArray | TArray< TSharedPtr< FContentBundleEditor > > | WorldPartition/ContentBundle/ContentBundleContainer.h | |
| ContentBundleGameArray | TArray< TUniquePtr< FContentBundle > > | WorldPartition/ContentBundle/ContentBundleContainer.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ContentBundlesVariant | TVariant< ContentBundleEditorArray, ContentBundleGameArray > | WorldPartition/ContentBundle/ContentBundleContainer.h | ||
| InjectedWorld | UWorld * | WorldPartition/ContentBundle/ContentBundleContainer.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddReferencedObjects
(
FReferenceCollector& Collector |
WorldPartition/ContentBundle/ContentBundleContainer.h | ||
void Deinitialize() |
WorldPartition/ContentBundle/ContentBundleContainer.h | ||
void ForEachContentBundle
(
TFunctionRef< void(FContentBundleBase*)> Func |
WorldPartition/ContentBundle/ContentBundleContainer.h | ||
void ForEachContentBundleBreakable
(
TFunctionRef< bool(FContentBundleBase*)> Func |
WorldPartition/ContentBundle/ContentBundleContainer.h | ||
TSharedPtr< FContentBundleEditor > GetEditorContentBundle
(
const FGuid& ContentBundleGuid |
WorldPartition/ContentBundle/ContentBundleContainer.h | ||
TSharedPtr< FContentBundleEditor > GetEditorContentBundle
(
const UContentBundleDescriptor* Descriptor |
WorldPartition/ContentBundle/ContentBundleContainer.h | ||
| WorldPartition/ContentBundle/ContentBundleContainer.h | |||
const TArray< TSharedPtr< FContentBundleEditor > > & GetEditorContentBundles () |
WorldPartition/ContentBundle/ContentBundleContainer.h | ||
TArray< TUniquePtr< FContentBundle > > & GetGameContentBundles () |
WorldPartition/ContentBundle/ContentBundleContainer.h | ||
const TArray< TUniquePtr< FContentBundle > > & GetGameContentBundles () |
WorldPartition/ContentBundle/ContentBundleContainer.h | ||
UWorld * GetInjectedWorld() |
WorldPartition/ContentBundle/ContentBundleContainer.h | ||
uint32 GetNumContentBundles() |
WorldPartition/ContentBundle/ContentBundleContainer.h | ||
void Initialize() |
WorldPartition/ContentBundle/ContentBundleContainer.h | ||
bool InjectContentBundle
(
FContentBundleClient& ContentBundleClient |
WorldPartition/ContentBundle/ContentBundleContainer.h | ||
bool RemoveContentBundle
(
FContentBundleClient& ContentBundleClient |
WorldPartition/ContentBundle/ContentBundleContainer.h | ||
bool UseEditorContentBundle() |
WorldPartition/ContentBundle/ContentBundleContainer.h |