using System.Collections.Generic; using System.Reflection; using UnityEngine; using UnityEngine.Rendering; namespace UnityEditor.Rendering { /// /// Interface to extend to provide UI /// public interface ICoreRenderPipelinePreferencesProvider { /// /// The list of keywords for user search /// List keywords { get; } /// /// The header of the panel /// GUIContent header { get { var type = GetType(); var displayTypeInfoAttribute = type.GetCustomAttribute(); return EditorGUIUtility.TrTextContent(displayTypeInfoAttribute != null ? displayTypeInfoAttribute.name : type.Name); } } /// /// Renders the Preferences UI for this provider /// void PreferenceGUI(); } }