private void DrawExcludeListElement(Rect rect, int index, bool isActive, bool isFocused) { rect.y += 1; rect = EditorGUIUtil.DrawReorderableListIndex(rect, m_excludes, index); SerializedProperty m_exclude = m_excludes.GetArrayElementAtIndex(index); float width = Mathf.Min(200, rect.width); float residue = rect.width - width; EditorGUI.PropertyField(new Rect(rect.x, rect.y, width + residue - space, lineHeight), m_exclude, GUIContent.none); }
private void DrawSceneListElement(Rect rect, int index, bool isActive, bool isFocused) { rect.y += 1; rect = EditorGUIUtil.DrawReorderableListIndex(rect, m_scenes, index); SerializedProperty m_scene = m_scenes.GetArrayElementAtIndex(index); SerializedProperty m_path = m_scene.FindPropertyRelative("path"); SerializedProperty m_ignore = m_scene.FindPropertyRelative("ignore"); float[] widths = GetOtherListColumnWidth(rect); EditorGUI.PropertyField(new Rect(rect.x, rect.y, widths[0] - space, lineHeight), m_path, GUIContent.none); rect.x += widths[0]; EditorGUI.PropertyField(new Rect(rect.x, rect.y, widths[1] - space, lineHeight), m_ignore, GUIContent.none); }
private void DrawDirListElement(Rect rect, int index, bool isActive, bool isFocused) { rect.y += 1; rect = EditorGUIUtil.DrawReorderableListIndex(rect, m_dirs, index); SerializedProperty m_dir = m_dirs.GetArrayElementAtIndex(index); SerializedProperty m_path = m_dir.FindPropertyRelative("path"); SerializedProperty m_FilePattern = m_dir.FindPropertyRelative("filePattern"); SerializedProperty m_bundleType = m_dir.FindPropertyRelative("bundleType"); SerializedProperty m_bundleRef = m_dir.FindPropertyRelative("bundleRef"); SerializedProperty m_ignore = m_dir.FindPropertyRelative("ignore"); float[] widths = GetDirListColumnWidth(rect); EditorGUI.PropertyField(new Rect(rect.x, rect.y, widths[0] - space, lineHeight), m_path, GUIContent.none); rect.x += widths[0]; EditorGUI.PropertyField(new Rect(rect.x, rect.y, widths[1] - space, lineHeight), m_FilePattern, GUIContent.none); rect.x += widths[1]; EditorGUI.PropertyField(new Rect(rect.x, rect.y, widths[2] - space, lineHeight), m_bundleType, GUIContent.none); rect.x += widths[2]; EditorGUI.PropertyField(new Rect(rect.x, rect.y, widths[3] - space, lineHeight), m_bundleRef, GUIContent.none); rect.x += widths[3]; EditorGUI.PropertyField(new Rect(rect.x, rect.y, widths[4] - space, lineHeight), m_ignore, GUIContent.none); }