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 Daniel Waslenko · Feb 22, 2011 at 02:52 PM · menumainmenu

how to make a main menu to view credits or start game

Is there a way to make a menu come up where you can select to view credits, intro, or play the game. I would like this to come up when the game is launched. I am not expecting a main menu script, i am looking at how to approach this, and get started.

I am using the free version of unity and am new to it. i went through the fps tutorial and now am doing my own game for fun. Is it possible to do this, and if so where is a good place to start.

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

Answer by Nynex71 · Feb 22, 2011 at 03:20 PM

yes it is possible... you could use multiple scenes for this and for each scene make sure in your project setting they are in there, this is the code to make a button load a scene...

if(GUI.Button(new Rect(10, 50, 75, 25), "Play Game")) {
            Application.LoadLevel(1);
        }

This will load your first scene... You can instead of have your scene be in numbers you can replace the Application part with this

Application.LoadLevel("Your Specific Scene");

Hope this takes you far sorry if i didnt help

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 AnyOldBiscuit · Dec 24, 2015 at 04:38 PM 0
Share

@Nynex71 Doesn't work.

avatar image tanoshimi AnyOldBiscuit · Dec 24, 2015 at 04:55 PM 0
Share

It does, but considering this answer is from 4 1/2 years ago, it's no longer best practice. You should use UnityEngine.UI ins$$anonymous$$d of OnGUI, and Scene$$anonymous$$anager.LoadScene ins$$anonymous$$d of Application.LoadLevel.

avatar image
0

Answer by Joshua · Feb 22, 2011 at 03:50 PM

http://www.unifycommunity.com/wiki/index.php?title=PauseMenu this is a great, free to use pause menu script. I use it myself, although I modified it quite a lot to suit my needs of course.

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

1 Person is following this question.

avatar image

Related Questions

How to make a Main Menu 3 Answers

How to check if game has just been launched 2 Answers

how to navigate through buttons? 1 Answer

How do i add an extra menu to my main menu (I'm a Beginner programmer!) 1 Answer

If(Application.isPlaying == "MainMenu") then Show A messenger. take a info 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