Assets/Packages/Curvy/Controllers/UITextSplineController.cs(73,19): error CS0738: `FluffyUnderware.Curvy.Controllers.UITextSplineController' does not implement interface member `UnityEngine.UI.IMeshModifier.ModifyMesh(UnityEngine.UI.VertexHelper)' and the best implementing candidate `FluffyUnderware.Curvy.Controllers.UITextSplineController.ModifyMesh(UnityEngine.Mesh)' return type `void' does not match interface member return type `void'
I am importing curvy 2.0 in an empty project, so there should not be anything causing this.
09-29-2015, 07:43 PM (This post was last modified: 09-29-2015, 07:43 PM by Jake.)
I can't believe it, Unity changed the IMeshModifier interface with that patch, it wasn't present in 5.2.1f0. They marked the old method as [Obsolete], but of course this gives a big error instead of a warning as the new member isn't part of the interface. There is not even an info about this in the patchnotes. What's even more frustrating is that they changed it back to the old (5.0/5.1) behaviour, so I coded the whole 5.2 processing for nuts. Thanks, Unity!
I'll create a working solution tomorrow that will go into 2.0.2, will post the solution here as well.
For now, open the file and add
Code:
public void ModifyMesh(VertexHelper verts) {}
right above the last #endif in the file. This will remove the error, but of course UITextSplineController won't do anything then.
I'm using Unity 5.2.1f1 and got the following error on import.
Assets/Packages/Curvy/Controllers/UITextSplineController.cs(263,20): error CS1061: Type `UnityEngine.UI.VertexHelper' does not contain a definition for `Clear' and no extension method `Clear' of type `UnityEngine.UI.VertexHelper' could be found (are you missing a using directive or an assembly reference?)
Fixed it by commenting the whole #if !UNITY_5_1 && !UNITY_5_0 && !UNITY_4_6... block