A game about forced loneliness, made by TACStudios
at master 47 lines 1.5 kB view raw
1using System; 2using System.Collections.Generic; 3using UnityEngine; 4using UnityEngine.Rendering; 5using RuntimeSRPPreferences = UnityEngine.Rendering.CoreRenderPipelinePreferences; 6 7namespace UnityEditor.Rendering 8{ 9 /// <summary> 10 /// Preferences for Decals 11 /// </summary> 12 public class DecalPreferences : ICoreRenderPipelinePreferencesProvider 13 { 14 static readonly Color k_DecalGizmoColorBase = new Color(1, 1, 1, 8f / 255); 15 static Func<Color> GetColorPrefDecalGizmoColor; 16 17 /// <summary> 18 /// Obtains the color of the decal gizmo 19 /// </summary> 20 public static Color decalGizmoColor => GetColorPrefDecalGizmoColor(); 21 22 static DecalPreferences() 23 { 24 GetColorPrefDecalGizmoColor = RuntimeSRPPreferences.RegisterPreferenceColor("Scene/Decal", k_DecalGizmoColorBase); 25 } 26 27 static List<string> s_SearchKeywords = new() { "Decals" }; 28 29 /// <summary> 30 /// The list of keywords for user search 31 /// </summary> 32 public List<string> keywords => s_SearchKeywords; 33 34 /// <summary> 35 /// The header of the panel 36 /// </summary> 37 public GUIContent header => null; // For now this is only a data preference without UI 38 39 /// <summary> 40 /// Renders the Preferences UI for this provider 41 /// </summary> 42 public void PreferenceGUI() 43 { 44 // For now this is only a data preference without UI 45 } 46 } 47}