- Modifié
Is it bad if a Skin has no attachments?
Hello!
I am working on a player avatar that can have multiple skins.
For simplicity let's say I have 3 slots:
- Body
- HairFront
- HairRear
The body slot is for changing skin colors, the hair slot is for changing hair colors and styles! : )
When my avatar has long hair I need to use both hair slots:
- 'HairFront' goes in front of the Body
- 'HairRear' goes behind the Body
But when my avatar has short hair I only need to use one hair slot:
- 'HairFront' for my art covering the scalp
I suppose if I had a completely shaved head with a topknot I would only need to use:
- 'HairRear' for the topknot that appears behind the scalp
In this case is it okay if I just leave the unused slot empty? In Spine I get the orange 'MISSING IMAGE' icon, but is this okay for my game? Or will this create errors?
How is the best way to handle a situation where I have a slot, but a skin doesn't have any art that gets used in that slot? Any help would be appreciated. Thanks!
Bump. Still needing help with this. I guess I'll carry on and hope that having missing images wont be a problem for my project. But if anyone has some advice I'd be very grateful. : )
If you want a skin to not have an attachment, then delete the attachment under the skin placeholder for that skin.
If you get a missing image icon, it means you have an attachment that Spine can't find the image for. Delete the attachment instead of giving it a name that doesn't resolve to an image file. Each skin has its own attachments.
Ah, I had (falsely) assumed that you always needed to assign a path to a skin. I hadn't considered just deleting the path and leaving it blank when a skin doesn't have art for it.
This fixes my problem. Thank you!
You're welcome!
Note your terminology is a bit off. You delete the attachment under a skin placeholder when you don't want an attachment for a skin. Deleting the path field on an attachment is not what I recommended.
Thank you for the clarification! : ) I'm new to Spine and appreciating all the help I can get!