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
2
Question by pKallv · Mar 14, 2015 at 08:02 PM · unity 5ui

Why do i get these messages from Unity3D UI?

I get the following messages, do not understand how to remove them:

 Parameter 'Normal' does not exist.
 UnityEngine.UI.Selectable:OnValidate()
 
 Parameter 'Pressed' does not exist.
 UnityEngine.UI.Selectable:OnValidate()
 
 Parameter 'Highlighted' does not exist.
 UnityEngine.UI.Selectable:OnValidate()
 
 Parameter 'Disabled' does not exist.
 UnityEngine.UI.Selectable:OnValidate()
 
 Parameter 'Normal' does not exist.
 UnityEngine.UI.Selectable:OnValidate()

There is a discussion here: http://forum.unity3d.com/threads/weird-button-warning.298673/

Still do not understand why and how to remove the messages.

Comment
Add comment · Show 7
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 meat5000 ♦ · Mar 14, 2015 at 04:48 PM 0
Share

Have you tried using lowercase ins$$anonymous$$d of capitals?

avatar image pKallv · Mar 14, 2015 at 05:07 PM 0
Share

If you mean capitals on the parameters I do not specify those at all, that is why i am confused.

avatar image meat5000 ♦ · Mar 14, 2015 at 08:03 PM 0
Share

Have you called the namespace?

using UnityEngine.UI;

avatar image Glurth · Mar 14, 2015 at 09:36 PM 0
Share

Not an exactly answer, but may give you a clue where to start looking.

It sounds like the connection between one of your UI components and the animation that controls it's transition state is somehow broken.

You could try de-activating your UI elements one at a time until the message goes away.
Once you have found the problem element, check out both it's animation state names, and the animation controller linked to it, and make sure they match. Note : the animation controller will be found in a separate component of the control's gameobject. Animation controllers are automatically added to ui controls when you select an animation transition and click the "auto-generate" button.

avatar image pKallv · Mar 15, 2015 at 11:16 PM 0
Share

Yes I have the correct namespace.

@Glurth will try that

Show more comments

8 Replies

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

Answer by pKallv · Mar 25, 2015 at 07:32 AM

I deleted the button with the animation and rebuilt it, then it worked.

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 CarterG81 · Aug 22, 2016 at 07:40 AM 0
Share

This is NOT the correct answer. The best/correct answer is below, by Zero$$anonymous$$cm w/ 10 votes.

avatar image
20

Answer by ZeroKcm · Apr 17, 2015 at 10:39 PM

I was able to fix this by changing the Transition dropdown in the Slider (Script) component to Animation... This opened up the NormalTrigger, Highlighted Trigger, Pressed Trigger and Disabled Trigger fields. Sure enough, in those fields were those 'Normal', Pressed', 'Highlighted' , and 'Disabled' parameters that the compiler was complaining about at runtime.

After I erased those fields, the warnings dropped. I'm just using that slider as a Health meter and it's not Interactable. Seems that Unity will still fill in some parameters that go with the interactive functionality usually used with sliders and buttons alike, especially if you are manually adding the animations & animation controllers in like I did.

Hope that helps :)

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 Peace2all · Apr 20, 2015 at 03:12 AM 2
Share

Yes, the solution of Zero$$anonymous$$cm worked for me. Am using Unity 501 P.Edtn. Select the corresponding element in hierarchy, go to script section in inspector and change transition type to 'Animation'. Then erase all 4 trigger fields. Then switch back to original transition type.

avatar image Crowbeak · Jun 04, 2016 at 05:08 AM 1
Share

I wish the person who opened this would come back and make this the best answer. Creating the button from scratch doesn't actually tell you what's wrong or how to fix/prevent the problem. This answer does.

avatar image Destroypattern · Oct 05, 2016 at 10:16 PM 0
Share

Thank you for this. And I agree, this should be the chosen answer. +1

avatar image Dennis15 · Oct 16, 2017 at 06:10 AM 0
Share

Thank you so much! You're a life saver!

avatar image
12

Answer by husoman · Sep 03, 2015 at 02:33 PM

It is easy to solve.

Click the button which is causing the problem and you will see this in the Inspector:

alt text

Delete the fields 'Normal', 'Highlighted', 'Pressed' and 'Disabled'.

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

Answer by sfusco · Mar 21, 2015 at 04:24 PM

This happened to me after upgrading a project from Unity 4 to Unity 5. I was using an animation controller for the main menu. I ended up just deleting the menu ac and rebuilding it.

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 pKallv · Mar 24, 2015 at 06:29 PM 0
Share

@sfusco i did that as well :-)

avatar image
0

Answer by Mulik · Jun 04, 2016 at 03:57 PM

In unity for UI button script you can choose either options(color tint,animations,sprite swaps) in transition drop down i thought you have selected animations that are missing in your project. the solution is either create and assign animations for that button or change transition property to color tint or other than animations.

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 Crowbeak · Jun 06, 2016 at 12:59 AM 0
Share

These errors can appear even if you have never changed that option to animations. This is the problem I had. It was throwing errors based on the animations settings even though it was set to color tint.

  • 1
  • 2
  • ›

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

15 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

Related Questions

How to get height of filled image ? 1 Answer

When i press play the buttons work, however, the buttons dont work on my iphone. 1 Answer

C# UI component overflaping another gameobject function 0 Answers

Physics.OverlapSphere not returning colliders. 0 Answers

How to trigger OnValueChange(Vector 2) method from code? 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