protected override void OnItemGui(MoleculeSpecies item) { if (item == null) { base.OnItemGui(item); return; } CUE cue = CUE.GetInstance(); item.Name = EditorGUILayout.TextField("Name", item.Name); item.InitialQuantity = EditorGUILayout.IntField("Initial Quantity [1]", item.InitialQuantity); item.Mass = EditorGUILayout.FloatField("Mass [u]", item.Mass); EditorGUILayout.LabelField("~Size [nm]", Utils.ScaleToNm(item.Size).ToString()); //EditorGUILayout.LabelField("ID", item.GetInstanceID().ToString()); EditorUtility.SetDirty(item); if (GUILayout.Button("remove")) { cue.RemoveSpecies(item); EditorUtility.SetDirty(cue); } }