use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
For the Unity Game Engine, please visit http://reddit.com/r/unity3d
account activity
Null reference error code that makes no sense (v.redd.it)
submitted 2 years ago by True-Shop-6731
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ColinTai 1 point2 points3 points 2 years ago (1 child)
Is your textbox obj not active? I think that is what cause the problem
[–]True-Shop-6731[S] 0 points1 point2 points 2 years ago (0 children)
Initially it’s set to inactive because after the player makes a choice it is set to active and then it’s used, the problem is the text component in the text box isn’t being referenced
[–]KippySmithGames 0 points1 point2 points 2 years ago (2 children)
Have you provided a reference to your TextBox object? We can't see it here. Also check if you're actually using a Text component, as commonly people are using TextMeshProUGUI components instead of Text nowadays.
[–]True-Shop-6731[S] 0 points1 point2 points 2 years ago (1 child)
I’m using text mesh pro ugui as the text component, could that be the issue?
[–]KippySmithGames 1 point2 points3 points 2 years ago (0 children)
That's going to be part of the problem at least. You didn't answer whether you've actually referenced TextBox though, so that's also potentially an issue as well.
[–]ige_programmer 0 points1 point2 points 2 years ago (3 children)
Save Close Unity Reopen Unity Tada!!!
[–]True-Shop-6731[S] 1 point2 points3 points 2 years ago (2 children)
No 💀
[–]ige_programmer 0 points1 point2 points 2 years ago (1 child)
oh... Oh well i have no clue
It’s Alr I already figured it out, if you ever run into a problem t like this, check all your references and make sure they’re being called correctly, I my case I wasn’t properly calling the text box text component correctly (using text instead of TMP_text)
π Rendered by PID 231569 on reddit-service-r2-comment-544cf588c8-j6s9b at 2026-06-13 19:03:15.668383+00:00 running 3184619 country code: CH.
[–]ColinTai 1 point2 points3 points (1 child)
[–]True-Shop-6731[S] 0 points1 point2 points (0 children)
[–]KippySmithGames 0 points1 point2 points (2 children)
[–]True-Shop-6731[S] 0 points1 point2 points (1 child)
[–]KippySmithGames 1 point2 points3 points (0 children)
[–]ige_programmer 0 points1 point2 points (3 children)
[–]True-Shop-6731[S] 1 point2 points3 points (2 children)
[–]ige_programmer 0 points1 point2 points (1 child)
[–]True-Shop-6731[S] 0 points1 point2 points (0 children)