• 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
3
Question by clamps · Mar 24, 2012 at 03:19 PM · android

startup scene

hello, how do i define which scene is the one that is first loaded when the application starts?

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

4 Replies

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

Answer by AlucardJay · Mar 24, 2012 at 03:31 PM

In the main menu => File->Build Settings... then the first scene in the window.

It's all here : http://unity3d.com/support/documentation/Manual/Publishing%20Builds.html

3rd paragraph under the picture : At this point, notice that each of your scenes has a different index value. Scene 0 is the first scene that will be loaded when you build the game. When you want to load a new scene, use Application.LoadLevel() inside your scripts.

hope all the information in the link is helpful.

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
avatar image
9

Answer by willem-jan · Oct 18, 2018 at 01:32 PM

If you want the editor to open in a scene when opening the project, change it in "Projectfolder"/Library/LastSceneManagerSetup.txt

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 Michael_Berna · Dec 10, 2019 at 01:48 AM 0
Share

Thanks so much for sharing! I had a huge working world scene and it kept loading as my default scene. It was streamed in game, but launching the editor took like 10 $$anonymous$$ and 28 GB of RA$$anonymous$$ usage. $$anonymous$$y productivity is greatly improved.

avatar image
0

Answer by playsidepaul · Mar 22, 2018 at 03:30 AM

Documentation URL (as of early 2018):

https://docs.unity3d.com/Manual/PublishingBuilds.html

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
avatar image
2

Answer by A_D · Jan 15, 2014 at 11:12 PM

Even though I had my scenes in the build settings set up right, the correct scene was not opening whenever I tried to run from the editor. I discovered that I had to have the scene I wanted to open first be the one that was open in the editor at the time (this is in 4.3) instead of another scene.

Comment
Add comment · Show 4 · 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 AlucardJay · Jan 16, 2014 at 04:38 AM 1
Share

Yes, in the Editor, the scene that is currently open is the one that is played. But the question was for 'when the application starts'

avatar image A_D · Jan 16, 2014 at 08:23 AM 0
Share

Yes but that distinction is not obvious if you are newer to Unity and used to build/run in Xcode or Visual Studio etc. The play button is really 'start this scene' and ignore the build settings, not build/run in the usual ide sense.

avatar image Jamora · Jan 16, 2014 at 10:04 AM 1
Share

You can extend the Editor to start at any scene you want. Have a look at this Question.

avatar image darthbator · Jul 01, 2014 at 04:34 AM 0
Share

I would have NEVER thought about this when trying to figure out why my editor always loaded a new scene. THAN$$anonymous$$ YOU!!!

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

10 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

Related Questions

Android Remote Unty 3.4 2 Answers

Why SetActive Game Objects generate too much Garbage in the profiler? 1 Answer

Photon refusing connection on Android 0 Answers

Sprite follow my finger 0 Answers

google market filter by screen 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