null check
This commit is contained in:
parent
e6af704f30
commit
5dd6a3b0de
@ -46,6 +46,8 @@ namespace NEG.UI.UnityUi.Buttons
|
|||||||
private void OnValidate()
|
private void OnValidate()
|
||||||
{
|
{
|
||||||
this.ValidateRefs();
|
this.ValidateRefs();
|
||||||
|
if(text == null || gameObject == null)
|
||||||
|
return;
|
||||||
text.text = gameObject.name;
|
text.text = gameObject.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user