• Runtimes
  • Is there anyway to load mutli atlas files in flutter runtime

Spine project was exported in multi files, like body.atlas / face.atlas, i want to load these files in flutter with one skel file. i was checked document and examples , cannot find a way to do that.

Related Discussions
...

To load multiple atlas files in the Flutter runtime with a single skeleton file, you can use the Atlas class to load each atlas file separately. The SkeletonData class can then be used to load the skeleton file, and you can provide the loaded atlas data to it. Unfortunately, the current documentation and examples do not explicitly cover loading multiple atlas files for a single skeleton, but you can manage multiple atlases by loading them individually and ensuring that the SkeletonData is aware of all the images it needs from these atlases.

Here's a basic approach you might consider:

  1. Load each atlas file using the Atlas class.
  2. Load the skeleton data using the SkeletonData class, providing it with the necessary atlas data.
  3. Ensure that your SpineWidget or other rendering components are aware of all the atlas data.

This approach requires some manual handling of the atlas files, but it should allow you to work with multiple atlases in the Flutter runtime.

  • ronvey ответили на это сообщение.

    Spinebot how SkeletonData load multi atlas

    • Davide ответили на это сообщение.

      ronvey

      Hello, before diving into the details, may I ask why you created multiple atlases for this? If your goal is to separate character parts, wouldn't it be possible to use a single (text) atlas file with multiple pages?