MCPcopy Create free account
hub / github.com/URLab-Sim/UnrealRoboticsLab / ExtractActorId

Function ExtractActorId

Source/URLabEditor/Private/MjLevelOps.cpp:658–676  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

656namespace
657{
658FString ExtractActorId(AActor* A)
659{
660 if (!A)
661 return FString();
662 if (AMjArticulation* Mj = Cast<AMjArticulation>(A))
663 {
664 if (!Mj->ActorId.IsEmpty())
665 return Mj->ActorId;
666 }
667 for (const FName& Tag : A->Tags)
668 {
669 FString S = Tag.ToString();
670 if (S.StartsWith(kActorIdTagPrefix))
671 {
672 return S.RightChop(FCString::Strlen(kActorIdTagPrefix));
673 }
674 }
675 return FString();
676}
677
678bool ShouldListActor(AActor* A)
679{

Callers 2

ListActorsSyncFunction · 0.85
BuildActorRowFunction · 0.85

Calls 2

IsEmptyMethod · 0.80
ToStringMethod · 0.45

Tested by

no test coverage detected