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

Method GetPrefabRoot

Source/Engine/Level/Actor.cpp:1553–1561  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1551}
1552
1553Actor* Actor::GetPrefabRoot()
1554{
1555 if (!HasPrefabLink())
1556 return nullptr;
1557 Actor* result = this;
1558 while (result && !result->IsPrefabRoot())
1559 result = result->GetParent();
1560 return result;
1561}
1562
1563Actor* Actor::FindActor(const StringView& name) const
1564{

Callers 5

UpdateRubberBandMethod · 0.80
ApplyAllMethod · 0.80
ReplaceScriptMethod · 0.80
ViewChangesMethod · 0.80
OnDiffRevertMethod · 0.80

Calls 2

IsPrefabRootMethod · 0.80
GetParentMethod · 0.45

Tested by

no test coverage detected