Currently, the spine-godot runtime does not provide a specific Control node for Spine animations to be used directly as UI objects. However, you can use the existing SpineSprite node within a Control node by adding it as a child. This allows you to integrate Spine animations into your UI, although it may require some additional setup to ensure proper alignment and interaction within the UI layout.
Here's a basic example of how you can add a SpineSprite to a Control node:
- Create a
Control node in your scene.
- Add a
SpineSprite node as a child of the Control node.
- Assign the
SkeletonDataResource to the SpineSprite node.
- Adjust the position and size of the
SpineSprite to fit within the Control node.
This setup allows you to use Spine animations within the UI, leveraging the existing SpineSprite functionality.