Navigation
API > API/Plugins > API/Plugins/ConcertSyncCore > API/Plugins/ConcertSyncCore/FReplicatedObjectHierarchyCache
Description
Traverses the hierarchy in post-order (children first, then the root), starting at an optional parent object.
Example sequence of callback invocations:
(/Game/Maps.Map:PersistentLevel.Cube, /Game/Maps.Map:PersistentLevel.Cube.StaticMeshComponent0)
(/Game/Maps.Map:PersistentLevel.Cube, /Game/Maps.Map:PersistentLevel.Cube.StaticMeshComponent1)
(/Game/Maps.Map:PersistentLevel, /Game/Maps.Map:PersistentLevel.Cube)
(/Game/Maps.Map:PersistentLevel.Sphere, /Game/Maps.Map:PersistentLevel.Sphere.StaticMeshComponent0)
(/Game/Maps.Map:PersistentLevel, /Game/Maps.Map:PersistentLevel.Sphere)
(/Game/Maps.Map, /Game/Maps.Map:PersistentLevel)
This lists implicit parents. For example, if you called AddObject(/Game/Maps.Map:PersistentLevel.Cube.StaticMeshComponent0), then its outers will be implicitly considered part of the hierarchy (i.e. /Game/Maps.Map:PersistentLevel.Cube, /Game/Maps.Map:PersistentLevel, /Game/Maps.Map). Use the FChildRelation to determine whether an object is part of the hiearchy implicitly or explicitly. Assets without children are not listed. For example, if you called AddObject(/Game/Maps.Map) and the hierarchy was otherwise empty, Callback would not be invoked.
| Name | TraverseBottomToTop |
| Type | function |
| Header File | /Engine/Plugins/Developer/Concert/ConcertSync/ConcertSyncCore/Source/ConcertSyncCore/Public/Replication/Misc/ReplicatedObjectHierarchyCache.h |
| Include Path | #include "Replication/Misc/ReplicatedObjectHierarchyCache.h" |
| Source | /Engine/Plugins/Developer/Concert/ConcertSync/ConcertSyncCore/Source/ConcertSyncCore/Private/Misc/ObjectPathHierarchy.cpp |
void TraverseBottomToTop
(
TFunctionRef < EBreakBehavior &Relation)> Callback,
const FSoftObjectPath & Start
) const
Parameters
| Name | Remarks |
|---|---|
| Callback | The callback to invoke |
| Start | The object at which to start walking up the hierarchy |