• 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 ina · Mar 14, 2011 at 11:38 AM · scenesmainmenumanual

Main Menu Creation - Multiple Scenes Tutorial?

Just looking through the manual, and found another deadlink @ http://unity3d.com/support/documentation/Manual/Publishing%20Builds.html - anyone know what the Scripting Tutorial.pdf is?

"For more information on how to best create a game with multiple scenes, for instance a main menu, a high-score screen, and actual game levels, see the Scripting Tutorial.pdf"

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
2

Answer by Bablo · Mar 14, 2011 at 11:51 AM

I have no idea about the .pdf, but using multiple scenes is very easy task. When you have the scenes you want, for example mainmenu.unity and level_1.unity. You go to File->Build Settings. When you have your scene active, press "Add Current", to add that scene to the Scene List.

On the right side in "Scenes In Build" list you can see the number of the scene to refer to.

Then just use the function Application.LoadLevel(x), where x is the number of the scene you want to load.

Hope it helps you out.

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
1

Answer by Ashkan_gc · Mar 14, 2011 at 12:00 PM

you should click on tutorials link in the link that you provided. it will take you to this page. in this page you can download the PDF which is a simple scripting tutorial for novices. your reputation shows that you are more professional than a guy who needs this.

about using multiple scens i should say it's relatively easy. just create your scenes using file/new scene and then put objects you want in them and save them. then add all scenes in build settings dialog's list of scenes. you can load any of the scenes in the list using their name/index number by a call to Application.LoadLevel. even you can download levels and load them after downloading in your web player builds. you will learn more yourself about this feature called "streaming build" later.

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 ina · Mar 14, 2011 at 07:02 PM 0
Share

It would be nice to see a tutorial that outlines the methodology, and if you need to DestroyLevel when loading a different one. In either case, my post was more to point out that there's a missing pdf link on the man page. BTW, how do you dynamically load a scene anyway?

avatar image Ashkan_gc · Mar 15, 2011 at 06:58 AM 0
Share

you can load levels by Application.LoadLevel. if you call DontDestroyOnLoad on an object it will not be destroyed after the next level load. if you load levels using application.LoadLevelAdditive the new level will be added to the current one and nothing will be destroyed.

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

No one has followed this question yet.

Related Questions

Modify button from another scene 1 Answer

Changing two different objects renderer colour 1 Answer

Move an Object to a separate area/NavMesh 0 Answers

Menu communication failed 1 Answer

Access to GUI Keyboard Focus 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