Description
Returns true if this actor is associated with a World Partition Content Bundle. Content Bundles are a World Partition feature for injecting actor content from plugins or DLC into a base world.
Caveats & Gotchas
- • Always returns false in non-World Partition levels or in builds that do not include the Content Bundle plugin. Check UWorldPartition::IsInitialized() before relying on this to distinguish 'not a bundle actor' from 'WP not active'.
- • Content Bundle association is established at load time based on the actor's outer package. You cannot move an actor into or out of a bundle at runtime by calling this check — it is read-only information.
Signature
ENGINE_API bool HasContentBundle() const; Return Type
bool Example
Skip base-world-only logic for bundle actors C++
if (MyActor->HasContentBundle())
{
// Actor was injected from a content bundle — skip base-world initialization
return;
}
InitializeBaseWorldActor(MyActor); Version History
Introduced in: 5.1
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
| 5.1 | stable | Introduced with World Partition Content Bundle support. |
Feedback
Was this helpful?