2021-09-09 20:42:29 -04:00

21 lines
741 B
C#

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