using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Rendering;
using RuntimeSRPPreferences = UnityEngine.Rendering.CoreRenderPipelinePreferences;
namespace UnityEditor.Rendering
{
///
/// Preferences for Decals
///
public class DecalPreferences : ICoreRenderPipelinePreferencesProvider
{
static readonly Color k_DecalGizmoColorBase = new Color(1, 1, 1, 8f / 255);
static Func GetColorPrefDecalGizmoColor;
///
/// Obtains the color of the decal gizmo
///
public static Color decalGizmoColor => GetColorPrefDecalGizmoColor();
static DecalPreferences()
{
GetColorPrefDecalGizmoColor = RuntimeSRPPreferences.RegisterPreferenceColor("Scene/Decal", k_DecalGizmoColorBase);
}
static List s_SearchKeywords = new() { "Decals" };
///
/// The list of keywords for user search
///
public List keywords => s_SearchKeywords;
///
/// The header of the panel
///
public GUIContent header => null; // For now this is only a data preference without UI
///
/// Renders the Preferences UI for this provider
///
public void PreferenceGUI()
{
// For now this is only a data preference without UI
}
}
}