• Editor
  • Problem With Unity Example

I'm trying to get the spineboy example working in Unity 3.5, but I have some errors:

Assets/examples/Unity 3.5/spineboy/SpineboyComponent.cs(33,35): error CS1061: Type `SkeletonComponent' does not contain a definition for `animationName' and no extension method `animationName' of type `SkeletonComponent' could be found (are you missing a using directive or an assembly reference?)
Assets/examples/Unity 3.5/spineboy/SpineboyComponent.cs(34,35): error CS1061: Type `SkeletonComponent' does not contain a definition for `loop' and no extension method `loop' of type `SkeletonComponent' could be found (are you missing a using directive or an assembly reference?)

Have I done something wrong? I followed the instructions in the readme on github.

Related Discussions
...

I think you are missing the spine-csharp folder on:

spine-runtimes / spine-unity / Assets / Plugins / Spine / spine-csharp

Just copy the folder contents over there, this should do it.

Yep, be sure to copy the latest spine-csharp into spine-unity.

I can't get it working, I must be doing something stupid... this is an example of where I put everything in my project:

Bild entfernt wegen fehlender Unterstützung für HTTPS. | Trotzdem zeigen

Does that look right?

Put the contents of spine-csharp/src into Plugins/Spine/spine-csharp.

Still nothing :\

Bild entfernt wegen fehlender Unterstützung für HTTPS. | Trotzdem zeigen

Hi,

I had same issue...

Remove SpineboyComponent.cs (or comment out every lines of code from SpineboyComponent.cs) from the spineboy folder to get Unity example working.

It seems that there is some mismatch between the SpineboyComponent.cs and the skeletonComponent.cs: SpineboyComponent is trying to access member variables which does not exist in skeletonComponent.cs (but seems to exist at least in skeletonAnimation.cs, like animationName and loop variables).

Br,

  • Moopido

Ah, delete SpineboyComponent.cs. It isn't in git anymore (it was renamed to Spineboy.cs).

Okay, it works now; awesome! Thanks for the help.

EDIT: Just a heads up, the SpineboyComponent.cs file was removed from the Unity 4 folder but not the Unity 3.5 folder in the github repo. Should fix that to avoid further confusion.

Oh crap! Sorry about that. :drunk: Fixed!