I just updated to Unity 4.3.X and it seems that the animation system update has broken UIPlayAnimation...slightly When I create an animation on any object (by clicking on the object, clicking on animation clip dropdown list in animation window and creating a new clip), it creates an animator component on that object and a seperate .anim file and animator controller file. I figured I should just remove the animator component and manually create the usual animation component on that object instead while referencing the new .anim file. But UIPlay animation keeps throwing this error at me:-
Default clip could not be found in attached animations list.
UnityEngine.Animation:Play()
ActiveAnimation:Play(String, Direction) (at Assets/NGUI/Scripts/Internal/ActiveAnimation.cs:175)
ActiveAnimation:Play(Animation, String, Direction, EnableCondition, DisableCondition) (at Assets/NGUI/Scripts/Internal/ActiveAnimation.cs:228)
UIPlayAnimation:Play(Boolean) (at Assets/NGUI/Scripts/Interaction/UIPlayAnimation.cs:196)
UIPlayAnimation:OnClick() (at Assets/NGUI/Scripts/Interaction/UIPlayAnimation.cs:145)
UnityEngine.GameObject:SendMessage(String, Object, SendMessageOptions)
UICamera:Notify(GameObject, String, Object) (at Assets/NGUI/Scripts/UI/UICamera.cs:783)
UICamera:ProcessTouch(Boolean, Boolean) (at Assets/NGUI/Scripts/UI/UICamera.cs:1375)
UICamera:ProcessMouse() (at Assets/NGUI/Scripts/UI/UICamera.cs:1081)
UICamera:Update() (at Assets/NGUI/Scripts/UI/UICamera.cs:947)
Im also getting a warning which says:-
The AnimationClip 'Menu - Main Menu' used by the Animation component 'Window Root - Main Menu' must be marked as Legacy.
I believe NGUI is looking for something that only the older version created because as soon as I tried an animation from one of your examples, it worked perfectly again.
I did however manage to create an original legacy clip by first creating an animation component on the object, and then creating the animation clip from the animation window.
Message to NGUI Devs, you might want to add the "work around" steps to your documentation.
Hope this helps someone somehow...spent many days and nights pulling my small afro hairs out on this.