• 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 richardzzzarnold · Nov 17, 2010 at 01:19 PM · crashloadlevelipad

load level problem when building to ipad

I have a simple splash scene that should automatically redirect to level one ("krtek") after a few seconds. It works great on the standalone, but when i build to iPad, it just plays the splash page and then closes the program.

This is the script i have on the splash page.

function Update () {
}
yield WaitForSeconds (8.2);
Application.LoadLevel ("krtek");

Is this a common problem ? I cant see any other reference to it anywhere..

Comment
Add comment
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

2 Replies

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

Answer by Bampf · Nov 17, 2010 at 02:14 PM

The first thing to try is to force-reboot your iPad. This has been known to clear up mysterious crash problems.

Assuming that doesn't fix it, you should run in XCode debug mode to see if you get any error messages, or even a stack trace.

Two things you can do in Unity that can cause a crash:

  • infinite recursion
  • overloading the available memory

Since it runs okay in the editor the second is more likely. Are you loading any very large assets in that scene? (Uncompressed images, for example, or large sound files?)

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 richardzzzarnold · Nov 17, 2010 at 02:38 PM 0
Share

yup, i should have guessed, too high poly count, I deleted some objects and now it works fine Duh !

avatar image
0

Answer by marcoatmac · Jul 06, 2012 at 07:42 PM

After clicked "build settings..." choose "player settings", into the inspector change the voice "call script optimization" >> Slow&Safe ;)

M

Comment
Add comment · 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

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

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

Related Questions

Need to link a button to next level 1 Answer

Restart game script. 1 Answer

spawn position after application.loadlevel 1 Answer

Saving score to next level? 3 Answers

Unity crashing when loading scene 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges