Fix: HorizontalGroupDrawer

This commit is contained in:
AnnulusGames 2024-02-17 21:28:21 +09:00
parent 16cf317d30
commit 36ff2b7534

View File

@ -196,8 +196,11 @@ namespace Alchemy.Editor.Drawers
field.RemoveFromClassList("unity-base-field__aligned");
var labelElement = field.Q<Label>();
labelElement.style.minWidth = 0f;
labelElement.style.width = GUIHelper.CalculateLabelWidth(element, inspector) * 0.8f / childCount;
if (labelElement != null)
{
labelElement.style.minWidth = 0f;
labelElement.style.width = GUIHelper.CalculateLabelWidth(element, inspector) * 0.8f / childCount;
}
}
root.schedule.Execute(() =>