Working with Spine files and UI Toolkit

We want to rebuild our inventory and store using the UI toolkit, but all our existing skins are currently spine file (over 700).

Has anyone found a good way to work with spine files without having to add an image file for each asset? Is there any sort of hack / way to have the toolkit work with the spine files? Can it just convert them during runtime?

Hello,

The most straightforward way would be to render Spine animations into a RenderTexture and display it inside the UI.

The less straightforward way is to create a custom VisualElement that uses the Mesh API to display the vertices coming from the Spine SDK. That should use less memory and scale better to many animations, not to mention the ability to see the animations in the UI builder.

We have been in contact with Esoteric software in the past, this is definitely possible but requires rather good knowledge of both systems. I will reach out to my contact over there to see if the UI Toolkit could be provided out of the box in their SDK.

Which Unity version are you using by the way?

@antoine-unity 2022.3.18 LTS

Ok, I reached out to Esoteric, we will post here directly when something is available

@gboni83 Please see the issue comment below, experimental Spine UI Toolkit integration packages are available now for spine-unity 4.0, 4.1 and 4.2: