diff --git a/NEG/UI/UnityUi/Buttons/BaseButton.cs b/NEG/UI/UnityUi/Buttons/BaseButton.cs index 2e414af..af4657b 100644 --- a/NEG/UI/UnityUi/Buttons/BaseButton.cs +++ b/NEG/UI/UnityUi/Buttons/BaseButton.cs @@ -46,6 +46,8 @@ namespace NEG.UI.UnityUi.Buttons private void OnValidate() { this.ValidateRefs(); + if(text == null || gameObject == null) + return; text.text = gameObject.name; }