• Runtimes
  • [UE5] Compile error

Hello,

I tried to compile the plugin with UE5, but I got following error:

>E:\study\SpineUe5Test\Plugins\SpinePlugin\Source\SpinePlugin\Private\SSpineWidget.cpp(72): error C2664: 'void spine::Skeleton::getBounds(float &,float &,float &,float &,spine::Vector<float> &)': cannot convert argument 1 from 'T' to 'float &'
1>        with
1>        [
1>            T=double
1>        ]
1>E:\study\SpineUe5Test\Plugins\SpinePlugin\Source\SpinePlugin\Public\spine-cpp\include\spine\Skeleton.h(183): note: see declaration of 'spine::Skeleton::getBounds'

Is there any workaround for it?

I'm using following versions:

  • UE5.0.1
  • Visual Studio 2019 16.11.13
  • Spine runtime 4.0 branch latest as of today (14af269a25c6c7a47e419f1f7511bf6ee594595c)

Thanks,
Toru

Related Discussions
...
  • Изменено

OK, Thanks! I'll keep an eye on it 🙂

20 дней спустя

yes please ue5 release !

UE5 is supported now in both the 4.0 and 4?1-beta Spine Runtimes branches.

8 дней спустя

Thanks for this. I was just stopping by the forums to check on UE5 compatibility for the runtimes as I had tried moving it over to 5 a few weeks ago and ran into some issues with importing that I was going to try and fix next week. Only commenting now to let you know there are at least a few of us out there using UE5 with it.

Awesome. Please report back if you find any more UE5 related issues. I test drove it quite a bit, and it appears everything is working as intended.