Rasagar/Library/PackageCache/com.unity.visualeffectgraph/Editor/GraphView/Elements/VFXIconBadge.cs
2024-08-26 23:07:20 +03: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");
}
}
}