UAnimationBlueprintLibrary::FindBonePathToRoot

Finds the Bone Path from the given Bone to the Root Bone