- Modifié
Complexe image Path not working
Hello guys,
I'm having an issue with a missing sprite. Due to architecture issues, I have certain region that use a specific Path like this:
../../Assets/Resources/Animation/Character/Soul/Skin/Sets/Basic/BluntBasic
But this is not working. I've checked the Path ten times, and it won't load the texture. I tried with and without limit scanning.
Any ideas?
What won't load the texture? At runtime or in the editor? You showed the attachment path, what is your images path?
The texture doesn't load in the Spine editor. The global Images path is just ../
Thanks. Spine doesn't load images outside the images path. You can't use an attachment path like ../Assets/etc
to load an image outside the images path. You could set your images path to ../../../
then use the attachment name like:
Assets/Resources/Animation/Character/Soul/Skin/Sets/Basic/BluntBasic
To do this you likely need to rename your existing attachments. To do that easily, you can use Find and Replace:
Tree - Spine User Guide: Find and Replace
An alternative might be to create a symlink in your images folder that points to a folder outside the images folder. On Windows that is done using mklink /J pathToLink pathToExternalImagesDir
.
Oh okay! I'll use the ../../../ approach then, it's a bit laggy due to huge amount of files to parse but it does the job, thanks