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 Tahj · Oct 13, 2011 at 06:24 AM · levellevels

Levels in Unity

This is a very noob question but how do you save different levels off in Unity. I was creating a gui but couldn't understand where it was calling to and where it gets specified within unity. For instance within the code bit below, where would the 1 be pointing two? Am I suppose to specify this somewhere within Unity or is this calling out to external files? Mostly I just want to know where the 1 points to in this code bit so that I know how to utilize it within the gui.

 if (GUI.Button (Rect (70,40,80,20), "Start")){
     Application.LoadLevel (1);
 }
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

1 Reply

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

Answer by BiG · Oct 13, 2011 at 06:35 AM

I'm not sure to understand your question well...Are you wondering about the origin of that "1" in "Application.LoadLevel (1);"?

In that case, you are calling the loading of a level by its index. And, to do so, you have to go in File->Build Settings to "load" your level into the project build and assign an index to it.

You can also call the loading of a level by its name:

Application.LoadLevel ("Level_1");

, as an example.

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 Tahj · Oct 13, 2011 at 07:21 AM 1
Share

Sorry for the poor wording and thanks that actually helped a lot. I mostly didn't understand where to start when placing the index. I understood how to call just didn't know how to assign it to those index values. Thanks a bunch.

avatar image BiG · Oct 13, 2011 at 07:27 AM 0
Share

Glad to read that! bye.

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Texturing rooms all the same? 1 Answer

About Creating Levels 1 Answer

Dynamically expanding existing Level by adding "Sub-Levels" 1 Answer

Why does my level progress reset after clicking the level menu button but doesnt reset after clicking the lvel menu button from the win screen? 1 Answer

How would you go about designing and implementing an indoor level? 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