folders fix
This commit is contained in:
15
Assets/Scripts/Editor/HeaderWithBackgroundAttribute.cs
Normal file
15
Assets/Scripts/Editor/HeaderWithBackgroundAttribute.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
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¹
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user