Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 JeffHardddyyy · Dec 22, 2015 at 09:11 AM · scenescreenscene-changehell

Title Screen & Scene Help ?

Okay, I have a title screen GUI, And everything, Just Is it possible, That When I click a button, It takes me to another scene?

I don't know how to word it simpler but :

• I have a titlescreen, With : "New Game" ; "Continue" ; "Settings" "Quit"** Now, Is there a script or a tutorial or anything, That makes it so I click New Game And it: A) Takes me to another scene B) Allows you to name the save and it'll automatically save unto Continue

If not, That is fine. Just curious Thank you for your time.

Comment
Add comment · Show 2
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 fredz0004 · Dec 22, 2015 at 11:42 PM 0
Share

I believe in your button you need to add:

 Application.Loadlevel(Argument);
avatar image LazyElephant fredz0004 · Dec 23, 2015 at 12:06 AM 1
Share

Note that if you're using unity 5.3, Application.Loadlevel is deprecated and you should start using Scene$$anonymous$$anager.LoadScene.

2 Replies

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

Answer by Harryliu · Dec 23, 2015 at 04:27 PM

add this code to a new script and add it to an empty gameobject(or any other game objects). then go to the button, go to the button component, click the " + " sign, drag in the gameobject with the script, click on "No functions", select the name of the script and then select the name of the function, which is Click().

 function Click ()
 {
     Application.LoadLevel("the name of your scene that you want to go to");
 }

before you put in the name of your scene, go to the scene the button will supposedly take you to, go to File > Build Settings and click Add Open Scenes. you should see the scene appear in "Scenes in Build".

if you do it right, when you click on the button it should take you to the scene.

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 Harryliu · Dec 23, 2015 at 04:22 AM 1
Share

But i don't know to save data :( Good luck with that.

avatar image
0

Answer by sandeepsmartest · Dec 23, 2015 at 07:29 AM

Below snippet may help you to load new scene on button click.As @LazyElephant said , if you are using unity 5.3 use scene manger (Check this). Hope this may help you. Nsks

 if( GUI.Button(new Rect(Screen.width/2,Screen.height/2,100,100),"Next Scene"))
         {
         Application.LoadLevel("Next Scene");//copy paste your scene name here.
         //Note: your new scene must be added in the buildsettings
         }


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.

Follow this Question

Answers Answers and Comments

7 People are following this question.

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

Related Questions

make a loading screen 1 Answer

Game Optimization, Scene changing 1 Answer

screenviewcoord[1] < 0 || screenviewcoord[3] < 0 5 Answers

UnloadSceneAsync() does not seem to work with additive scenes. 1 Answer

How to prevent Unity3D making unnecessary changes after saving scene with no actual changes 0 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