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

Function IsParentOf

Source/Engine/Networking/NetworkReplicator.cpp:855–860  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

853}
854
855bool IsParentOf(ScriptingObject* obj, ScriptingObject* parent)
856{
857 if (const auto* sceneObject = ScriptingObject::Cast<SceneObject>(obj))
858 return sceneObject->GetParent() == parent || IsParentOf(sceneObject->GetParent(), parent);
859 return false;
860}
861
862SceneObject* FindPrefabObject(Actor* a, const Guid& prefabObjectId)
863{

Callers 4

AddObjectMethod · 0.85
SetObjectOwnershipMethod · 0.85

Calls 1

GetParentMethod · 0.45

Tested by

no test coverage detected