You can find a list of existing UI layers on UI Scripting -> .
To traverse a layer's children, you first need to get the corresponding layer's virtual window:
private static func PrintLayerHierarchy(CName layerName) {
let window = GameInstance.GetInkSystem().GetLayer(layerName).GetVirtualWindow();
let rootWidget = window.GetWidgetByPathName(n"Root") as inkCanvas;
// The function LogWidgetTree is defined below
LogChannelTree(n"DEBUG", baseHudRoot);
}
PrintLayerHierarchy(n"inkHUDLayer")
Logging Widget Trees
Big thanks to Rayshader for walking me through this with the patience of a saint!