public SystemData DrawSingleRoom(SystemData systemData, int sysDataIndex) { SystemData sysData = systemData; EditorGUILayout.BeginHorizontal(); EditorGUILayout.BeginVertical(); //RoomName /*EditorGUILayout.BeginVertical(); * EditorGUILayout.LabelField(sysData.room.ToString()); * EditorGUILayout.EndVertical();*/ //SystemName EditorGUILayout.BeginHorizontal(); sysData.system = (SystemName)EditorGUILayout.EnumPopup("System", sysData.system); EditorGUILayout.EndHorizontal(); //Position EditorGUILayout.BeginHorizontal(); sysData.SetPosition(EditorGUILayout.Vector3Field("Position", sysData.GetPosition())); EditorGUILayout.EndHorizontal(); //Rotation EditorGUILayout.BeginHorizontal(); sysData.SetRotation(EditorGUILayout.Vector3Field("Rotation", sysData.GetRotation().eulerAngles)); EditorGUILayout.EndHorizontal(); EditorGUILayout.EndVertical(); EditorGUILayout.EndHorizontal(); return(sysData); }