• 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 Agent101 · Mar 18, 2013 at 12:57 PM · errorcrashrenderstart

I rendered my game and it crashes when I start it, how can I fix it?

In unity my game would work fine, it would have errors but they weren't fatal but when I rendered the game it would crash when I start it, any suggestions?

Comment
Add comment · Show 8
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 nsxdavid · Mar 18, 2013 at 04:09 PM 0
Share
avatar image murkantilism · Mar 18, 2013 at 04:24 PM 0
Share
avatar image robertbu · Mar 18, 2013 at 04:26 PM 0
Share
avatar image Agent101 · Mar 18, 2013 at 09:51 PM 0
Share
avatar image robertbu · Mar 18, 2013 at 10:06 PM 0
Share
Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by robertbu · Mar 19, 2013 at 12:44 AM

You need to fix all the red errors, and it would not hurt to fix all others. It looks like either you've spelled the name of the tag incorrectly or have failed to define the tag 'waypoint'. Capitalization matters. Waypoint != waypoint != waypoints... So that means that when you do:

 wayPoints = GameObject.FindGameObjectsWithTag("waypoint");

You are getting back a list with not$$anonymous$$ng in it. So when you do attempt to access with wayPoints[rand] you get more errors because are attempting to access information from an empty list. T$$anonymous$$s type of error will typically run in the editor but will crash a device.

A couple of notes:

  • When you post error messages and the code, you need to double click on the error and then add a comment to the line that has the error. The line number in the listing below do not line up with the line numbers in the listing, and knowing what lines the errors occur on is a huge help in figure out what is going on.

  • By posting followup information as answers, your question is now marked as having two answers (though you've not received any answers yet). Having it marked as having two answers makes it far more likely that people answering questions will not look at your question. You can convert your answers below to comments using the 'more' drop-down at the bottom of each answer.

Comment
Add comment · Show 2 · 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 Agent101 · Mar 19, 2013 at 04:50 AM 0
Share
avatar image robertbu · Mar 19, 2013 at 07:12 AM 0
Share

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

13 People are following this question.

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

Related Questions

Unity Crashing on Play after updating to 2018.2.1f1 0 Answers

GC error whit canvas and LoadLevel 0 Answers

Unity crashes on destroying a massive amount of objects 3 Answers

After Unity Crash Camera RenderTexture 0 Alpha 0 Answers

Stop Editor From Crashing 1 Answer


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