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
828 B
21 lines
828 B
using UnityEngine;
|
|
using UnityEngine.Rendering.HighDefinition;
|
|
using RenderingLayerMask = UnityEngine.Rendering.HighDefinition.RenderingLayerMask;
|
|
|
|
namespace UnityEditor.Rendering.HighDefinition
|
|
{
|
|
[CustomPropertyDrawer(typeof(RenderingLayerMask))]
|
|
class RenderingLayerMaskPropertyDrawer : 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.DrawRenderingLayerMask(position, property, label);
|
|
|
|
//default height is good (= single line height)
|
|
}
|
|
}
|