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
1
Question by Pauleta · Mar 13, 2015 at 11:26 PM · unity 5uibuttonruntimeissue

Issue adding UI Button Unity 5

I'm getting this error message when i try to add an UI Button and play the scene:

"GameObject (named 'Button') references runtime script in scene file. Fixing!"

My button is a child of a Canvas.

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 pfreese · Mar 16, 2015 at 07:34 PM 0
Share

Does this happen each time you add a button, or only once? Is the button being added using the menu, or is it contained within a prefab?

avatar image Pauleta · Mar 17, 2015 at 05:18 AM 0
Share

Every time i try to add it. I have a canvas so, i right click on it then on UI -> Button. That is it. When i try to play my scene, i get this error. I can run the scene but my buttons don't react.

3 Replies

· Add your reply
  • Sort: 
avatar image
5

Answer by mattbadley · May 17, 2015 at 04:43 PM

I also had this issue which was driving me crazy - there was no logical reason to why it happened (it seemed to happen after I made some button/canvas alterations while in play mode accidentally).

Ever since then all my canvas and events objects were corrupted. If I deleted and start again, all would be fine until I switched scenes and then back again - this process would cause the canvas to corrupt.

I seem to have half fixed it by doing 'Assets > Reimport All' from the menu. I still get canvas errors but when entering play mode the errors fix themselves.

I have no idea what's going on here but it's pretty frustrating!

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 FlightOfOne · Jun 11, 2015 at 09:01 AM 0
Share

Thank you '$$anonymous$$attbadley', that fixed it for me. I still get the errors too.

avatar image Denscrivent · Jun 17, 2015 at 07:00 AM 0
Share

this works! thanks mate

avatar image
0

Answer by warmerice · Apr 26, 2015 at 11:43 AM

btw, i "fixed" mine by removing those components that have (scripts) that are causing the error. I dont know if this is a good way of fixing it but it did.

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 Snorry · Jul 09, 2015 at 05:57 PM 0
Share

had the same problem removed the libary folder in my unity project leads to a reimport and solved the problem

avatar image
0

Answer by OnlyFails · Oct 08, 2015 at 10:43 AM

I "fixed" the issue by using NGUI instead of the one clumsily half handed to us by Unity. (Who ironically tried to steal NGUI's design and make it better after the guy who made it refused a position at their company)

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 Dreamwriter · Oct 25, 2015 at 11:43 PM 0
Share

You may want to clarify your facts - the nGUI guy actually did accept a position at Unity and helped them work on their new GUI system for a year. As far as I know he has never said anything negative about his experience there.

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

26 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

Related Questions

Button rect transform top 0 Answers

how to test Buttons 1 Answer

UI button in Panel not clickable 2 Answers

UI Button Link breaking after scene load 0 Answers

Button position scaling weird 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