struct

PrefabEntityData

Stores component data for a single entity within a prefab

Module
AssetSystem
Header
#include "AssetSystem/Assets/PrefabAsset.h"
Namespace
Mowo

Properties

TypeNameDescription
uint32_tindexDefault 0.
std::stringname
int32_tparentIndex-1 = root entity Default -1.
std::optional<std::string>nestedPrefabPathNested prefab reference — when set, this entry is a *placeholder*: PrefabInstantiator recursively loads the referenced prefab and attaches its root under this entry's parent, applying this entry's Transform as the spawn offset. The component list below is ignored when nestedPrefabPath is set.
std::vector<MdfNode>componentsComponent nodes in file order (parsed once on Load, reused on Instantiate). Node type = reflection display name ("Transform", "MeshRenderer", ...) — resolved against ReflectionRegistry at instantiate time, so prefabs carry ANY reflected component.
std::optional<MdfNode>actorNodeThe entry's Actor node, when the source entity was actor-backed. It is what makes a prefab an instance of a CLASS rather than a list of components: FActorSerializer respawns the named class, so a prefab of a Visual Script actor comes back with its graphs, its component slots and its CDO defaults, and only the values this entry overrode on top. Kept out of components because it is not a reflected ECS component and the component loop would refuse it by name.
std::stringactorClassClass named by actorNode, or empty. Read without spawning anything — the backfill uses it to adopt an instance under the right class instead of the plain AActor it used to assume.

Public functions

ReturnsNameDescription
const MdfNode*FindComponent

Function details

FindComponent

C++
const MdfNode* FindComponent(const char* type) const
Generated from AssetSystem/Assets/PrefabAsset.h via assetsystem.json · Nov 4, 2026Version 1.0.0