I have a player sprite created in Inkscape, with each body part on its own layer. I am attempting to export each layer as a separate SVG file and then import the files into Unity via the Vector Graphics package, so that I can connect and animate the various body parts. I have tried using "File > Save a Copy" and selecting "Layers as Separate SVG (*.tar)" as the file type, but the resulting .tar generates an "Unexpected end of data" error when I extract it. I can then open the extracted SVGs perfectly fine in Inkscape, but Unity gives the error "Incomplete mesh data in Sprite. Please reimport or recreate the Sprite."
How can I fix this? It seems that either I'm doing something wrong or the .tar is just always corrupted.
@AlexGarbus I am really sorry that I can't help you but that seems more something related with Unity rather than Inkscape, have you tried to do the same question on the Unity forum? Maybe the Unity team itself can be interested to fix this issue.
@AlexGarbus I am really sorry that I can't help you but that seems more something related with Unity rather than Inkscape, have you tried to do the same question on the Unity forum? Maybe the Unity team itself can be interested to fix this issue.
I have a player sprite created in Inkscape, with each body part on its own layer. I am attempting to export each layer as a separate SVG file and then import the files into Unity via the Vector Graphics package, so that I can connect and animate the various body parts. I have tried using "File > Save a Copy" and selecting "Layers as Separate SVG (*.tar)" as the file type, but the resulting .tar generates an "Unexpected end of data" error when I extract it. I can then open the extracted SVGs perfectly fine in Inkscape, but Unity gives the error "Incomplete mesh data in Sprite. Please reimport or recreate the Sprite."
How can I fix this? It seems that either I'm doing something wrong or the .tar is just always corrupted.
@AlexGarbus I am really sorry that I can't help you but that seems more something related with Unity rather than Inkscape, have you tried to do the same question on the Unity forum? Maybe the Unity team itself can be interested to fix this issue.
I ended up finding this batch export plugin, and I was able to import into Unity perfectly fine by using it instead of Layers as Separate SVG: https://github.com/kristofvandam/inkscape-batch-export
Cool and glad you resolved, however I would suggest you to report the issue on the Unity forum and also report the workaround you found!