Files
cloud-mainworld/ufm cloud/Library/PackageCache/com.unity.shadergraph@d526115bb944/Editor/Util/IconBadgeWrapper.cs
T
wub 530cdbf98f animation riging
riged the lights to the root animatior ready for animation
2026-11-30 19:13:17 +00:00

25 lines
837 B
C#

using GraphViewIconBadge = UnityEditor.Experimental.GraphView.IconBadge;
namespace UnityEditor.ShaderGraph
{
// Wrapper class for internal access to GraphView's IconBadge.
// Allows for creation of badges which don't manually layout their label's dimensions. Works around
// a GraphView bug.
internal static class IconBadgeWrapper
{
public static GraphViewIconBadge CreateError(string message)
{
var result = GraphViewIconBadge.CreateError(message);
result.m_ComputeTextBoundingBox = false;
return result;
}
public static GraphViewIconBadge CreateComment(string message)
{
var result = GraphViewIconBadge.CreateComment(message);
result.m_ComputeTextBoundingBox = false;
return result;
}
}
}