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.

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 :slight_smile:

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’.

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.

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

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.

If anybody still having this annoying warnings: Putting Animator on Empty GameObject worked perfectly for me

Yeah i was also getting same error !!! i read this post and some other too
soon after sometime i got the solution

when you add animation to your UI button keep the Transition to > Animation !!
and add animator component !! and animate your button ( name animation clips accordingly )
once all animation are added and are working fine!

change the transition to > None

your animations will work properly without error!!

If the error is from AssetDatabase.Refresh(): “Parameter ‘Normal’ does not exist.
UnityEditor.AssetDatabase:Refresh()”, you can put the Refresh call in a Couroutine with “yield return null;” before it, to fix the warning.