using UnityEngine; using UnityEngine.Rendering.HighDefinition; using RenderingLayerMask = UnityEngine.Rendering.HighDefinition.RenderingLayerMask; namespace UnityEditor.Rendering.HighDefinition { [CustomPropertyDrawer(typeof(RenderingLayerMask))] class RenderingLayerMaskPropertyDrawer : PropertyDrawer { /// /// Draws a decal layer enum. /// /// The rect to draw. /// The property to draw. /// The label to draw. public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) => HDEditorUtils.DrawRenderingLayerMask(position, property, label); //default height is good (= single line height) } }