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 davidragge · May 13, 2015 at 10:58 AM · errorscripterrorbehavior

Button Script is missing after load

So I have a game breaking problem. The thing that happens is that I have a level called bootstrap where music and shit gets initialized, and after 10 seconds it changes to the main menu. That is where the problem lies. When main menu gets loaded all of the scripts that has to do with buttons are missing causing me not to interact with them and being able to start the actual game itself.

"The referenced script on this Behaviour is missing!"

Any sort of help is greatly appreciated.

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
0

Answer by sas_88 · May 13, 2015 at 11:20 AM

whether the buttons are in main menu scene or instantiate button from prefab in script during runtime.

If button instantiate from prefab in script during runtime, check the prefab for existence of the script.

If u move the script file to different location in project window after adding the script to gameobject,there is possible of above scenario.

Comment
Add comment · Show 4 · 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 davidragge · May 13, 2015 at 11:56 AM 0
Share

Well the problem is that i don't know where the button script is since it's a default script in unity.

avatar image sas_88 · May 13, 2015 at 12:10 PM 0
Share

Here tutorial for your question : https://www.youtube.com/watch?v=kQ2Qc_0$$anonymous$$IyI

avatar image ZeFirestarter · May 13, 2015 at 01:26 PM 0
Share

Look at the Button in the Inspector. There you can see the name of the script.

alt text

Once you have the name of the script, you can look it up in the Project Window.

alt text

I didn't understand what your problem was. Does your $$anonymous$$ain $$anonymous$$enu Scene work properly, but when you add the scene to your first scene, the buttons don't work anymore. Or were they never working properly in the first place?

avatar image davidragge · May 16, 2015 at 05:45 PM 0
Share

Well the unity add button thing in the UI just disappeared without reason so i decided to make my own UI and that works anyways

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

2 People are following this question.

avatar image avatar image

Related Questions

How do I inherit certain varibles and functions from another script. 1 Answer

Delay between animations 1 Answer

Unity, AI script errors... please help 0 Answers

Windows Script error upon opening a new javascript behavior script. 4 Answers

Why do I get error when using yield? 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