Null Reference Exception




i got null reference for Question(our Scriptable Object ) and it’s badly came with only for getting answer(in the Image I high-Lighted that Question is set up with no problem ) . what should my next step to solve this ?

I haven’t done the new 2d course, but at a guess you haven’t added your TextMeshProGUI Component on one of your answer GameObjects.

yup ! you are right .
actually i did but not done correctly TextMeshPro is component(class) of the button
object/component(class) and that’s why have to use GetComponentInChield and i had used GetComponent so it’s not gettting Textmeshpro and throw an error.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms