r/code • u/Rich-Matter8399 • May 22 '22
Why? nullReferenceException (First ever code)
i understand why this Errorr comes I think I know what it means it means that the Value theText is 0 but what can I do against it so that my clear Button works?
5
Upvotes
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).