private static void GUI_Draw_Updatebar(SceneView sceneView) { if (waitForNextFrame) { return; } int sample = BocsCyclesAPI.Cycles_progress(); if (sample == samples) { return; } float barLength = (float)sample / (float)samples; if (fullScreen) { EditorGUI.DrawRect(new Rect(0, sceneView.position.height - 24, barLength * sceneView.position.width, 4), Color.blue); } else { EditorGUI.DrawRect(new Rect(10, sceneView.position.height - 24, barLength * 256.0f, 4), Color.blue); } }