21 lines
741 B
C#
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)
|
|
}
|
|
}
|