Walk the scene graph from root toward targetPath, collecting the composable attrs of every node on the path.
root
targetPath
Walk the scene graph from
roottowardtargetPath, collecting the composable attrs of every node on the path.