struct
PrefabEntityData
Stores component data for a single entity within a prefab
- Module
- AssetSystem
- Header
#include "AssetSystem/Assets/PrefabAsset.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
uint32_t | index | Default 0. |
std::string | name | |
int32_t | parentIndex | -1 = root entity Default -1. |
std::optional<std::string> | nestedPrefabPath | Nested 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> | components | Component 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> | actorNode | The 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::string | actorClass | Class 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
| Returns | Name | Description |
|---|---|---|
const MdfNode* | FindComponent |
Function details
FindComponent
C++
const MdfNode* FindComponent(const char* type) constGenerated from AssetSystem/Assets/PrefabAsset.h via assetsystem.json · Nov 4, 2026Version 1.0.0