Files
beyond/Assets/Scripts/Editor/HeaderWithBackgroundAttribute.cs
2025-11-13 19:02:06 +01:00

16 lines
519 B
C#

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¹
}
}