• Runtimes
  • Replacing textures in a project without losing animation

Hi! Сам you help, please. I have a finished project from an animator. I need to replace some textures. Some of them are a bit bigger than the original ones. Can I copy the mesh, rig, and other properties to the new texture, keeping all the animation intact?

    Related Discussions
    ...

    lipanovs If the only difference between the bigger texture and the original texture is the resolution or the size of the margins at the corners, it is easy to replace.

    If you want to change the texture resolution, first export your skeleton in JSON format with Nonessential Data checked, and then imported again using the Scale option in the Import Data dialog to change the size of the skeleton. The new project would then use images with a different size.

    If you want to change the size of the margins at the corners, choose Keep size in the Image Resized dialog that appears after replacing the source images and press the OK button:

    If the ratio of the original texture has changed, it will take more time and effort. Please check this thread for an explanation of the procedure for replacing a texture with a texture that has different ratio from the original: https://esotericsoftware.com/forum/d/24523-mesh-updating-/2

    Oh, I just noticed that the "Runtime" tag is being used in this thread. I don't think simply replacing it with a texture of a different size at runtime will work. It should be necessary to replace the image that has changed size on the Spine editor.