using UnityEngine; // Atrybut, który będzie używany do oznaczania nagłówków z tłem public class HeaderWithBackgroundAttribute : PropertyAttribute { public string HeaderText; // Tekst nagłówka public Color BackgroundColor; // Kolor tła // Konstruktor, który ustawia tekst i kolor tła public HeaderWithBackgroundAttribute(string headerText, float r, float g, float b) { HeaderText = headerText; BackgroundColor = new Color(r, g, b, 1f); // Kolor z pełną przezroczystością } }