Navigation
API > API/Plugins > API/Plugins/ConcertSyncCore > API/Plugins/ConcertSyncCore/Misc
References
| Module | ConcertSyncCore |
| Header | /Engine/Plugins/Developer/Concert/ConcertSync/ConcertSyncCore/Source/ConcertSyncCore/Public/Misc/ObjectPathOuterIterator.h |
| Include | #include "Misc/ObjectPathOuterIterator.h" |
Syntax
class FObjectPathOuterIterator
Remarks
Parses a FSoftObjectPath string and iterates through all outer objects of the Start path.
Example: Start = /Game/Maps.Map:PersistentLevel.Cube.StaticMeshComponent0.Foo would invoke Callback in this order:
/Game/Maps.Map:PersistentLevel.Cube.StaticMeshComponent0
/Game/Maps.Map:PersistentLevel.Cube
/Game/Maps.Map:PersistentLevel
/Game/Maps.Map
Example usage: const FSoftObjectPath ComponentPath{ TEXT("/Game/Maps.Map:PersistentLevel.Cube.StaticMeshComponent0") }; for (ConcertSyncCore::FObjectPathOuterIterator It(ComponentPath); It; ++It) { const FSoftObjectPath& Path = *It; // 1st iteration = /Game/Maps.Map:PersistentLevel.Cube const FString String = It->ToString(); // 1st iteration = /Game/Maps.Map:PersistentLevel.Cube }
Constructors
| Type | Name | Description | |
|---|---|---|---|
FObjectPathOuterIterator
(
const FSoftObjectPath& Start |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator! () |
||
| bool | operator!=
(
const FObjectPathOuterIterator& Right |
||
| const FSoftObjectPath & | operator* () |
||
| void | operator++ () |
||
| bool | operator==
(
const FObjectPathOuterIterator& Right |
||
| const FSoftObjectPath * | operator-> () |