Ianamus

Hello,

I have downloaded the latest package (http://esotericsoftware.com/files/runtimes/unity/spine-unity-3_6-2018-02-11.unitypackage), but when I import it into my unity project I receive the following compilation error:

error CS0066: `Spine.EventQueue.AnimationsChanged': event must be of a delegate type
Ianamus
Bài viết: 3

Pharan

What version of Unity are you using?
Hình đại diện của thành viên
Pharan

Pharan
Bài viết: 5096

Ianamus

I'm currently using Unity version 5.6.1. Do I need to update to a newer version?
Ianamus
Bài viết: 3

Pharan

The latest 5.6 is fine, but that error doesn't make sense.
Can you get the complete message logged in the Unity editor console?
Hình đại diện của thành viên
Pharan

Pharan
Bài viết: 5096

Ianamus

The full error message in the unity console is: Assets/Spine/spine-csharp/AnimationState.cs(910,25): error CS0066: `Spine.EventQueue.AnimationsChanged': event must be of a delegate type.

I think I may know the problem is. I have defined my own "Action" class in my games C# scripts, and this might be conflicting with a similarly named class in the Spine package. I'll try renaming my class and see if that fixes the issue.

Edit: That was the cause of the problem, and the issue is now fixed.
Ianamus
Bài viết: 3

Pharan

System.Action is a built-in .NET/mono delegate type.
"https://msdn.microsoft.com/en-us/library/system.action(v=vs.110).aspx"

That's what Spine was using.
Hình đại diện của thành viên
Pharan

Pharan
Bài viết: 5096


Quay về Unity
cron