private void OnGUI()
    {
        GUILayout.Label("A-Frame script object position Exporter", EditorStyles.boldLabel);
        useDataPath = EditorGUILayout.Toggle("Use DataPath", useDataPath);
        pathToSave  = EditorGUILayout.TextField("Path to Save", pathToSave);
        fileName    = EditorGUILayout.TextField("File Name", fileName);
        if (GUILayout.Button("Export"))
        {
            PlayerPrefs.SetString("LAST_PATH", pathToSave);
            string pathTemp = pathToSave;
            if (useDataPath == true)
            {
                pathTemp = Application.dataPath + "/" + pathTemp;
            }


            CreateAllFolders(pathTemp);


            TextFileExporter.SaveTextFile(pathTemp, fileName, SceneObjectsConverter.GetAFrameCode(pathTemp));

            ShowNotification(new GUIContent("Completed"));
        }

        GUILayout.Label("Created by mimic.land", EditorStyles.boldLabel);
    }
Beispiel #2
0
        private static void FindInstancesRequiringAdditionalAnnotationUseCase()
        {
            var dataset = LoadDataSet("C:/DSInput/MonoGame");

            var exporter = new TextFileExporter("C:/DSOutput/Mono");

            exporter.ExportInstancesWithAnnotatorId(dataset.GetInsufficientlyAnnotatedInstances());
        }
Beispiel #3
0
        private static void FindInstancesWithAllDisagreeingAnnotationsUseCase()
        {
            var dataset = LoadDataSet("C:/DSInput");

            var exporter = new TextFileExporter("C:/DSOutput/Mono");

            exporter.ExportInstancesWithAnnotatorId(dataset.GetInstancesWithAllDisagreeingAnnotations());
        }