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 /
  • Help Room /
avatar image
0
Question by spykerwolf · Mar 22, 2017 at 08:12 PM · menupanelabout-window

Creating an 'About' button then linking to Main Menu

Hey guys. Complete beginner here.

I've got a Main Menu (New Game, About, Quit), and another scene (Pong game). New Game is working (Application.Loadlevel --> pong scene).

I'm trying to create a panel for the about menu, but I don't know how to enable/disable the menu.

I've got a pause menu that currently works, so I pretty much copied that script - the only difference is the pause menu gets triggered with 'ESC', but I'm trying to open the About menu with the mouse.

I'm trying to achieve the same thing by going back or (disabling) the about menu when I press the right arrow image (on the About page). This is in C# by the way.

Any advice? Thanks guys

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
Best Answer

Answer by PPenar · Mar 22, 2017 at 09:21 PM

Find the image that has Button script attached to it. Then, press + in the On Click () menu of the button. After that, drag the menu you want to disable there and select the function SetActive(bool). alt text This way, after the button is clicked, the dragged object will disappear. This way you can also make other object appear ( just tick the box that appears)


answerpng.jpg (56.0 kB)
Comment
Add comment · Show 5 · 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 spykerwolf · Mar 23, 2017 at 05:33 AM 0
Share

Hey man. Thanks for the suggestion. The back button works now, but unfortunately I still can't access the about menu. When I click play the About menu comes up, and then I click the back button to go back to the main menu. When I click the about button nothing happens. Any ideas?

avatar image PPenar spykerwolf · Mar 23, 2017 at 05:57 PM 0
Share

@spykerwolf See if OnClick() event of the About button is configured properly. If it's empty, try adding something there.

avatar image spykerwolf PPenar · Mar 23, 2017 at 09:07 PM 0
Share

Double checked it, and it's configured the same as the back button. I added the 'About' button as a test, and when I click the about button it disappears (so it's working). It just doesn't work when I try to display that panel =/

Show more comments
avatar image
0

Answer by spykerwolf · May 12, 2017 at 02:28 PM

Fixed it by adding another OnClick() event to close the about menu panel. Thanks for all the help guys!

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

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

Related Questions

Problems to add an object to a scroll list 0 Answers

How can I toggle visibility off for multiple panels when I toggle visibility on for one? 0 Answers

How to call a public function automatically when I return to the Main Menu from any levels? 3 Answers

How do I add my script to the "Assets/Create" menu? 2 Answers

UnityEngine.Application.LoadLevel(String) is obsolet! 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