#button.OnClick.AddListener null reference exception.
1 messages · Page 1 of 1 (latest)
NullReferenceException means that you either never assigned an object to variable, or set it to null.
Do Debug.Log(yourVariable == null) before the line with the error to test if that's the case.
You can look into:
• https://docs.microsoft.com/en-gb/dotnet/api/system.nullreferenceexception
• https://docs.unity3d.com/Manual/NullReferenceException.html