So I have a much more complicated script that’s unimportant to this question, and I’ve been simplifying and simplifying trying to figure out the problem, and I’ve now boiled it down to this: tempp.text = (Application.dataPath);.
Now, when I run it in the unity editor it works as it should, showing “C://Users/Public/Documents/Unity Projects/Game/Assets” in the text canvas. But after I build the program it shows NOTHING. Not even a little bit of text where the text usually is when I run it in the unity editor.
Application.dataPath is the path to your assets folder. That’s not available in builds, since the Asset folder doesn’t exist in builds.
If you need a folder that exists both in Editor and in builds, that’s inside your application, use StreamingAssets, which you get with Application.streamingAssetsPath.