Ok the problem is that whenever I want to use the UI text I need to convert my int values to string, so I made a method that simply took the Text variable and gave it the value of the Int variable I had so it could be used by the UI text object.
It looks like this:
void setText(Text textVar, int valueVar)
{
textVar.text = valueVar.ToString();
}
pretty simple right? well… im getting the error: NullReferenceException: Object reference not set to an instance of an object.
I am using the UnityEngine.UI library, its not based on an added script or component, its within the FPSController class, and it was working before I updated it, whats the problem? did something change regarding casting to strings or the text class? Any insights please, I dont seem to understand the problem at all.