MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / FindCyclicReferences

Function FindCyclicReferences

Source/Engine/Level/Prefabs/Prefab.Apply.cpp:622–633  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

620}
621
622bool FindCyclicReferences(Actor* actor, const Guid& prefabRootId)
623{
624 for (int32 i = 0; i < actor->Children.Count(); i++)
625 {
626 const auto child = actor->Children[i];
627
628 if (child->GetPrefabObjectID() == prefabRootId || FindCyclicReferences(child, prefabRootId))
629 return true;
630 }
631
632 return false;
633}
634
635bool Prefab::ApplyAll(Actor* targetActor)
636{

Callers 1

ApplyAllMethod · 0.85

Calls 1

CountMethod · 0.45

Tested by

no test coverage detected