public static int GetCountByLayer(UIWSLayer layer) { if (WindowSystem.instance.windowsCountByLayer.TryGetValue(layer.value, out int count) == true) { return(count); } return(0); }
public static float GetNextZDepth(UIWSLayer layer) { var settings = WindowSystem.GetSettings(); var layerInfo = settings.GetLayerInfo(layer.value); var step = (layerInfo.maxZDepth - layerInfo.minZDepth) / settings.windowsPerLayer; if (WindowSystem.instance.topWindowsByLayer.TryGetValue(layer.value, out var instance) == true) { return(instance.GetZDepth() + step); } return(layerInfo.minZDepth); }