Space Shooter Tutorial crashes when trying to play in browser.

I just finished the Space Shooter Tutorial and upon trying to play it in my browser (Chrome) it crashes upon finishing loading (and playing the background music for half a second) with “The content was stopped because a fatal content error has been detected.”

I’m just starting out and this is very confusing to me as I have no idea how to fix this or what could be causing the error. I have a feeling I’m going to run into this again down the line and I want to know how to fix it.

Fiddling with the build settings didn’t seem to do anything.

Here’s a link to my project files: Dropbox

Other:
I have been holding off on updating Windows 8 on my 4 year old laptop since last time I did that the graphics driver broke and in fact right now I’m probably not using the exact correct driver because HP doesn’t support my laptop for Windows 8.
The Roll A Ball example worked fine in my browser for me.

(It’s a 4.6.1 project.)

Hi Chris,

It probably has to do something with the UI text. Did you use the GUIText that the tutorial used or did you change that to UI.Text like I did? When using the UI.Text object the game will crash. I tested this by removing the UI.Text elements completely from the game and it seemed to work.

After some research it seemed I had to include the UI shaders to the game itself. You can go to Edit->Projects Settings->Graphics to open the Graphics Settings in the inspector. Here you can supply additional Shaders. Increase size to 3 and click the button next to the new elements. Now select UI/Default and UI/Default Font.

Now it should work.

2 Likes