Build Error for Text 101

Hi Justin,

Have you already tried to reinstall Unity?

Won’t reinstalling mess up my build? It was my understanding that updating or reinstalling could mess things up

It could mess things up, so it’s not recommended to update without a very good reason. Not being able to proceed to develope one’s project because of internal Unity problems is a very good reason to reinstall. Depending on your version of Unity, it could even make sense to update if certain bugs are fixed.

Before you do anything, close Unity and duplicate your project folder. Save the copy on an USB stick or somewhere else. This will be your backup in case updating breaks your original project.

Your build is irrelevant because you can always create a new build. Only your Unity project matters.

I don’t know if the WebGL problem has to do with the following, but you could check this anyway:

  1. Save your build on your harddrive but not inside your project folder, on your Desktop or in a cloud.
  2. Use English characters only for your file and folder names.
  3. Make sure that neither your firewall nor your antivirus program block Unity.

I updated before I got this and it trashed my scripts. Errors CS1644 and also CS0246. Has something to do with TextMeshPro I think. Reinstalling may fix it but I can’t remember how. I guess ill have to search through those videos till I find the right spot.

TextMeshPro will not display in the Window Menu. I tried removing and reinstalling and rebooting Unity several times.

Remove TMP completely via the package manager and make sure the folder is deleted in the Assets folder. Then restart Unity. Open the package manager, install TMP, then downgrade TMP in the Package Manager to the recommended version.

I updated before I got this and it trashed my scripts.

It might be that updating not only broke your scripts but also other crutial elements of your project.

If nothing helps, I’d recommend to go to the Lecture Project Changes of the current or the previous lecture, click on “Browse All” (not the path!) and download Rick’s project state.

I don’t understand then. Say it takes you a year to build a game then Unity releases an update. Afterwards you can’t build the game without updating but updating trashes the game? So you have to rebuild every time and hope Unity doesn’t release an update?

I did what you said and still it doesn’t show up under the Window Menu. I guess I’ll just move on to the next project and hope it works next time. I’m not going to spend 3 hours rebuilding the same thing I just finished just to share it.

I did get it to work after updating from 2019.1.7f1 to 2019.3.0a5 Alpha. I didn’t think Alpha or Beta were always best to try because they would not be a finished version

Just don’t update/upgrade unless it is really necessary meaning there are bugs in the current version which got fixed in the new one or there is a new tool you need to use. Before you update/upgrade make a backup of your project. Then update or upgrade and test your project.

There is no spend 3h recreate your game. If you did not add your own ideas yet, you could download Rick’s project state from the current lecture… Open it in Unity and continue with the project. You should not notice any difference.

You can download the project on GitHub as described in the last paragraph of my previous answer. Unfortunately, Udemy’s servers are currently down. Otherwise, I would have posted a link.


Updated Tue Jun 18 2019 20:36

Udemy seems to be back. This is the link to Rick’s project state from lecture “Publish Your WebGL Game” (currently #33). Click on the green download button. Unzip the project, open it in Unity and create a test build.

If you had your own story, copy and paste all scriptable objects from your current project including their .meta files and paste them into the downloaded project. I think/hope that the scriptable objects are not broken.

If you had your own design, recreate it. That shouldn’t take you more than a few minutes.

Thanks for your help. I got it working by updating to the Alpha version of the newest. Solved.

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

Privacy & Terms