Adding button to delete old video files.

parent 4c7e25ea
......@@ -28,6 +28,7 @@ public class SceneControllerEditor : Editor
EditorGUILayout.Space();
DeleteOldScreenshots(sc);
DeleteOldVideos(sc);
}
......@@ -42,6 +43,17 @@ public class SceneControllerEditor : Editor
}
}
private void DeleteOldVideos(SceneController sc)
{
if (GUILayout.Button("Cleanup simulation videos"))
{
foreach (FileInfo fi in new DirectoryInfo(".").GetFiles("*.webm"))
{
fi.Delete();
}
}
}
private void ShowSemanticLabels(SceneController sc)
{
showLabels = EditorGUILayout.BeginFoldoutHeaderGroup(showLabels, "Semantic labels");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment