Beispiel #1
0
        void OnGUI()
        {
            objectsParent = (Transform)EditorGUILayout.ObjectField(objectsParent, typeof(Transform), true, GUILayout.Width(100));
            using (var group = new EditorGUILayout.HorizontalScope())
            {
                experimentData = (ExperimentDataObject)EditorGUILayout.ObjectField(experimentData, typeof(ExperimentDataObject), false, GUILayout.Width(200));
                if (GUILayout.Button("保存初始位置"))
                {
                    SaveStartUpGroup();
                }
            }

            using (var group = new EditorGUILayout.HorizontalScope())
            {
                configData = (ConfigGroupObject)EditorGUILayout.ObjectField(configData, typeof(ConfigGroupObject), false, GUILayout.Width(200));
                _title     = EditorGUILayout.TextField(_title);
                if (GUILayout.Button("新建一配制组合"))
                {
                    CreateNewGroup();
                }
            }
        }
Beispiel #2
0
 public void InitExperiment(ExperimentDataObject objectData)
 {
     experimentName = objectData.expName;
     elements       = objectData.elements;
 }