Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Unicorn_Rocket · Dec 19, 2014 at 10:52 PM · space shooterfatal error

Javascript Fatal Content Error from Space Shooter tutorial in Chrome web build

I've completed the Space Shooter tutorial, so my C# code is identical to that of the tutorial (except I've replaced the GUIText-related code for new UI code).

The game runs as expected within Unity, but following the completion of lesson 17 ("Building the game"), it gives the error in the web player with a JavaScript Alert: "The content was stopped because a fatal content error has been detected". Error screenshot below. The background sound loop for the game DOES play, and continues to play after I close the Chrome tab (but ceases after I close Chrome entirely). For reference, I'm on OS X 10.9.5 and Chrome 39.0.2171.95.

My only clue as to what might be going on: In the very beginning of the tutorial, I checked/set the Build Settings, and noticed a scene mysteriously already there. I think it was titled "xx_scenes/Main.unity". It was grayed out, with its checkbox un-clickable. Since the checkbox was un-clicked, I ignored it when I eventually built the game for the web. After getting this error the first time, I deleted said scene from that list, but the error remains after rebuilding.

Other than that, perhaps my differing UI code is causing the error? That's the only other difference I can think of between my local environment and the tutorial. I'm not sure how to go about troubleshooting this error, as I have no familiarity with Javascript or the Unity web player, and the error doesn't show up in any tests within Unity.

alt text

screen shot 2014-12-19 at 4.52.55 pm.png (50.2 kB)
Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Reals · Jan 08, 2015 at 10:46 PM 0
Share

I have the exact same problem. It would be nice to know whats wrong.

avatar image diette · Jan 12, 2015 at 02:17 AM 0
Share

just completed the tutorial and have this identical issue.

it must be the new UI because if i disable the canvas that contains all the ui texts (Score, Restart, Gameover) and reBUILD, it works.

what i have done, is in unity added a ui text as a child of canvas in the hierarchy for each (score, restart & gameover). in the script for the GameController added the line: " using UnityEngine.UI; " at the top and changed GUIText to Text in the public variable declaration.

this worked in the build for the roll a ball tutorial but not here. not sure why.

curious if anyone has found information for this space shooter tutorial using the new GUI?

avatar image MadMenyo · Jan 13, 2015 at 02:45 AM 0
Share

Yes i did exactly the same with the new UI text and it also fails. Is there a way to get to the legacy GUI text?

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by tonza · Jan 14, 2015 at 12:57 AM

Check this out.

http://stackoverflow.com/questions/27912745/unity-webplayer-crashes-with-ui-text-new-canvas-text

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image diette · Jan 14, 2015 at 02:44 PM 0
Share

this worked brilliantly - thank you.

the above link in short: edit > project settings > graphics

in the inspector window "diffuse" is most likely the only shader there. click on the cog wheel (gear icon) and "reset". this will add the "ui/default" & "ui/default font".

rebuild your project and it should work now.

thanks again :)

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

8 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Want Ships & Bullets to transform relative to Camera. 2 Answers

enemy spawn without coroutine? 1 Answer

why the boundary is not working? 0 Answers

Why showing bugs in sample code of space shooting project 0 Answers

how to make an 'S' Shaped projectile in 2D ? 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges