Shioo Posted May 30, 2023 Posted May 30, 2023 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: exported.psd Quote
myclay Posted May 30, 2023 Posted May 30, 2023 Go to the export persona and use slices for every element you want to be separate. In the Layers, there is a Create Slice button. Use it to create a "new file" for each element you want to be separate. 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. Edit; Apparently for Unity renaming the .psd file to .psb can help too. Quote 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) |
Shioo Posted May 30, 2023 Author Posted May 30, 2023 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? Quote
myclay Posted May 30, 2023 Posted May 30, 2023 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. Quote 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) |
Hangman Posted May 30, 2023 Posted May 30, 2023 Hi @Shioo, Do you both have Use Layer Grouping and Character Rig enabled in the PSD Importer window in Unity? Quote 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
Shioo Posted May 30, 2023 Author Posted May 30, 2023 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! Quote
Hangman Posted May 30, 2023 Posted May 30, 2023 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. Quote 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
Recommended Posts
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.