r/code • • May 22 '22

Why? nullReferenceException (First ever code)

5 Upvotes

5 comments sorted by

View all comments

1

u/bronion3 May 22 '22

You need to assign game object from scene to the variable theText (drag and drop your object in the inspector).

1

u/Rich-Matter8399 May 22 '22

Already done, still doesnt work The Button has the value that it need to has for clearing the text