PBChris

Hello! I am currently working on a Unity game where we need to have many different gear visuals swapped out on one single character rig.

We are planning to use the Unity "Mix and Match" functionality, however we want to bake some bleed into the exported images so that all future cosmetics can be easily swapped out at runtime without having to adjust the Sprite pivots in Unity. Looking at the list of tags available in the Photoshop to Unity script, I see that I can tag specific layers to not be trimmed however I am unable to limit the amount of trim in any way. Ideally it would be nice if the script could adhere to layer masks, much like the "Quick Export as PNG" function does to trim everything that is not within the mask.

A basic work-around is to use the script to export the layer with bleed added in as pixels, and then re-export just that group using the Quick Export, which DOES take the mask into consideration... however repeating this process for each and every image will be unsustainable.

Am I missing something that would make adding bleed to exports from PS easily doable or will we need to alter the provided script? Below is a visual of the extra negative space I would want to add to the visor.
Nemaš dopuštenje za pregledavanje privit(a)ka dodan(og)ih postu.
PBChris
  • Postovi: 4

Misaki

Unfortunately, PhotoshopToSpine does not allow you to set the trim area with masks or numerical values. However, a method that has been recommended instead for some time is to group the image you want to trim in a specific area with a layer that specifies that area, and then export the group with a merge tag. The layer that specifies the trimming area should be set to an opacity of 1% or so, so it will not be visible by human eyes.
trim area.png

I hope this will help you.
Nemaš dopuštenje za pregledavanje privit(a)ka dodan(og)ih postu.
Avatar
Misaki

Misaki
  • Postovi: 755

PBChris

Thank you for the suggestion! Ill certainly use this in the meantime while we are in the testing phase.
PBChris
  • Postovi: 4


Natrag na Editor