Files
CartoonRPG/Library/PackageCache/com.unity.visualeffectgraph@2973a8ac1070/Editor/GraphView/Elements/VFXIconBadge.cs

16 lines
453 B
C#
Raw Normal View History

2025-06-05 22:59:18 +01:00
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");
}
}
}