You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

15 lines
453 B

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");
}
}
}