tanghao
Why is the image url not parameterized?
That URL is dynamically concatenated using the location of the atlas file and the image names within the atlas file.
You can actually parametrize it with a trick explained in the documentation in this paragraph. You can do like this:
rawDataURIs can also be used to use atlas images from a different path or (if CORS is enabled) a different domain.
For example, if the name of the image is raptor-pma.png
:
new spine.SpinePlayer("player", {
skeleton: "raptor-pro.json",
atlas: "raptor-pma.atlas",
rawDataURIs: {
"raptor-pma.png": "https://YOUR-PARAMETRIZED/IMAGE.png"
}
}
If you do like this, the image raptor-pma.png
will be downloaded from https://YOUR-PARAMETRIZED/IMAGE.png
.