Files
CartoonRPG/Library/PackageCache/com.unity.visualeffectgraph@2973a8ac1070/Editor/GraphView/Elements/VFXIconBadge.cs
Caleb Sandford deQuincey 02c4b5ab66 Adding in new packages
2025-06-05 22:59:18 +01:00

16 lines
453 B
C#

using UnityEngine.UIElements;
namespace UnityEditor.VFX.UI
{
class VFXIconBadge : VisualElement
{
public VFXIconBadge(string description, VFXErrorType vfxErrorType)
{
Add(new VisualElement { name = "tip"});
tooltip = description;
AddToClassList(vfxErrorType == VFXErrorType.Error ? "badge-error" : vfxErrorType == VFXErrorType.Warning ? "badge-warning" : "badge-perf");
}
}
}