Jump to content

Recommended Posts

Posted

Hi! 
I'm trying to export as .psd to import in unity. But once in unity, instead of having the different layers, I have all the pieces separated individually. I even try marking rasterize all layers, but I still get all the separated pieces.

I'm doing something wrong? 

Using affinity designer 2.0.1, Unity 2022.1.20f and importing using the 2D psd importer from Unity.

Here is a file example:
 

affinity.png

exporter.png

InUnity.png

exported.psd

Posted

Go to the export persona and use slices for every element you want to be separate.

image.png.7499cc1102be688259fd4deac65817c4.png
In the Layers, there is a Create Slice button. Use it to create a "new file" for each element you want to be separate.

image.png.0ee03c2b1b56b68a2635f0aba278d5d9.png

moving to Slices, you can then export the slices and set which file format they have to be.
A bonus point is, you could use the Batch Builder preset spline Json which depending on the support of your game engine means, the order and placement we currently see in Affinity Photo will be brought over.

image.png.b2d1730d36e98b5bcddb9016c0b85c40.png


Edit;
Apparently for Unity renaming the .psd file to .psb   can help too.

Sketchbook (with Affinity Suite usage) | timurariman.com | artstation store

Windows 11 Pro - 23H2 | Ryzen 5800X3D | RTX 3090 - 24GB | 128GB |
Main SSD with 1TB | SSD 4TB | PCIe SSD 256GB (configured as Scratch disk) |

 

Posted

Hi MyClay! Thanks for helping!
I have tried slices before, but the problem is that it export as separated images, and if I could just export and keep the layers it would be really helpful. Even if the layers are rasterized.
It's not possible to export to psd and preserve layers?

 

Edited:
Just found a way to have it to work. Into Unity psd importer, there is a tab "Layer Manager", You have to go there and "Merge" every layer. Apparently unity separate the content of every layer by default?

Posted

This surpasses my knowledge.
Maybe you could ask Jarek Majewski who used Affinity Photo/Designer in conjunction with Unity and also wrote the 2D Game Art book which was released by Unity;
https://resources.unity.com/games/2d-game-art-animation-lighting-for-artists-ebook

http://www.mindjardesign.com./

The book besides the slices workflow only mentions to rename the psd file in your windows explorer to psb and then Unity can load in layers.

 

Sketchbook (with Affinity Suite usage) | timurariman.com | artstation store

Windows 11 Pro - 23H2 | Ryzen 5800X3D | RTX 3090 - 24GB | 128GB |
Main SSD with 1TB | SSD 4TB | PCIe SSD 256GB (configured as Scratch disk) |

 

Posted

Hi @Shioo,

Do you both have Use Layer Grouping and Character Rig enabled in the PSD Importer window in Unity?

psd-importer.png.aaeb35def860fa75d0bc25bd1c93d314.png

Affinity Designer 2.5.7 | Affinity Photo 2.5.7 | Affinity Publisher 2.5.7
Affinity Designer Beta 2.6.0.3125 | Affinity Photo Beta 2.6.0.3125 | Affinity Publisher Beta 2.6.0.3125

MacBook Pro M3 Max, 36 GB Unified Memory, macOS Sonoma 14.6.1, Magic Mouse
HP ENVY x360, 8 GB RAM, AMD Ryzen 5 2500U, Windows 10 Home, Logitech Mouse

Posted

Yes I have both. And I tried different settings. In the end the thing that work was going to Layer Manager and manually merge the content of each layer, with that it worked!

 

Thanks both for your help!

Posted

I suspect Unity doesn't recognise Affinity Layers with a Capital L so you possibly simply need to Group elements in the layers panel rather than creating Layers but I could be wrong. I don't have access to Unity to test...

So, instead of adding elements to a Layer (i.e., the item shown with the horizontal blue line icon), move the same items out of the Layer so they appear as individual layers in the layers panel, select the relevant layers and then Group them, Cmd G (Ctrl G on Windows) so you end up with the same document structure, with different elements in separate Groups instead of separate Layers.

Don't rasterise anything when exporting your PSD file and see whether or not Unity recognises the elements in Groups rather than the elements in Layers.

image.png.1f9b4484c23c1b97c9d0a4c76dfabd46.png

Affinity Designer 2.5.7 | Affinity Photo 2.5.7 | Affinity Publisher 2.5.7
Affinity Designer Beta 2.6.0.3125 | Affinity Photo Beta 2.6.0.3125 | Affinity Publisher Beta 2.6.0.3125

MacBook Pro M3 Max, 36 GB Unified Memory, macOS Sonoma 14.6.1, Magic Mouse
HP ENVY x360, 8 GB RAM, AMD Ryzen 5 2500U, Windows 10 Home, Logitech Mouse

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.