diff --git a/NEG/UI/UnityUi/Buttons/BaseButton.cs b/NEG/UI/UnityUi/Buttons/BaseButton.cs index af4657b..7c605df 100644 --- a/NEG/UI/UnityUi/Buttons/BaseButton.cs +++ b/NEG/UI/UnityUi/Buttons/BaseButton.cs @@ -46,9 +46,6 @@ namespace NEG.UI.UnityUi.Buttons private void OnValidate() { this.ValidateRefs(); - if(text == null || gameObject == null) - return; - text.text = gameObject.name; } public void OnDeselect(BaseEventData eventData) => OnDeselected?.Invoke(eventData is SilentEventData);