41phaNum3r1ca1
Tried to use unitys eventsystem to set a tag to a clicked gameObject, getting nullReferenceException
All of this stuff Ive been taught as "this is just how it is, itll make sense later" and then it didnt make sense later and I just accepted it
23 replies
Tried to use unitys eventsystem to set a tag to a clicked gameObject, getting nullReferenceException
Ohhhhh! I just got it. When I first learnt, I accepted that when you make references, such as public GameObject gameObject, GameObject was a variable type(no one ever explained classes to me). I just looked up what one was, and oh my good lord up above that makes sense
23 replies
I am attempting to assign an integer value to a 2d array, but I get a null reference error✅
see, I made a reference to a gameobject and tried to go gameobject.variable and was confused that I had to gameobject.GetComponent<ScriptName>().variable
50 replies
I am attempting to assign an integer value to a 2d array, but I get a null reference error✅
50 replies