null check

This commit is contained in:
Hubert Mattusch 2024-03-04 11:46:39 +01:00
parent e6af704f30
commit 5dd6a3b0de

View File

@ -46,6 +46,8 @@ namespace NEG.UI.UnityUi.Buttons
private void OnValidate()
{
this.ValidateRefs();
if(text == null || gameObject == null)
return;
text.text = gameObject.name;
}