You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

21 lines
719 B

using UnityEditor.UIElements;
using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.UIElements;
namespace UnityEditor.Rendering
{
[CustomPropertyDrawer(typeof(RenderPipelineGraphicsSettingsContainer))]
class RenderPipelineGraphicsSettingsContainerPropertyDrawer : PropertyDrawer
{
public override VisualElement CreatePropertyGUI(SerializedProperty property)
{
var root = new VisualElement { name = "GlobalSettingsContainer" };
var graphicsSettings = property.FindPropertyRelative("m_SettingsList");
Debug.Assert(graphicsSettings != null);
root.Add(new PropertyField(graphicsSettings));
return root;
}
}
}