Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

How to import layers into different sprites

Discussion in '2D' started by neozack, Apr 14, 2020.

  1. neozack

    neozack

    Joined:
    Mar 20, 2020
    Posts:
    5
    Hi,

    I'm using GIMP for my 2D Game textures and sprites.

    As I learn character creation, I want to try skeletal animation, and I can see that in this video



    Unity can import layers into different sprites if using PSB files. However, PSB is Photoshop only (GIMP does support PSD but not PSB). Is there any format that GIMP supports that Unity can use in the same way (importing each layer as a different asset)?

    If not, is there another way of making this easy?

    Thanks!
     
    harperloom and Voltorise like this.
  2. ChuanXin

    ChuanXin

    Unity Technologies

    Joined:
    Apr 7, 2015
    Posts:
    1,068
    You could try renaming the extension of your GIMP .psd file to .psb and importing that file with the Unity PSD Importer?
     
    fuzen likes this.
  3. Beetruth

    Beetruth

    Joined:
    Nov 14, 2020
    Posts:
    1
    That didn't work for me. I exported it as a psb, but it said "The given filename does not have any known file extension. Please enter a known file extension or select a file format from the file format list."
     
  4. Xiangting_Su

    Xiangting_Su

    Unity Technologies

    Joined:
    Sep 22, 2020
    Posts:
    246
    Heya Main-mane! Have you tried exporting it from Gimp as a PSD file first (not PSB)?

    Then try renaming the extension as PSB manually in your folder. :)
     
    asakitora1999, bramd91 and fuzen like this.
  5. muraDev

    muraDev

    Joined:
    Oct 7, 2019
    Posts:
    1
    Thank you! It works
     
    Xiangting_Su likes this.
  6. Xiangting_Su

    Xiangting_Su

    Unity Technologies

    Joined:
    Sep 22, 2020
    Posts:
    246
  7. Mercuri

    Mercuri

    Joined:
    Sep 23, 2013
    Posts:
    2
    Wow - I was pulling my hair out over this. Created Animations with onion skinning in Procreate - exported as PSDs, can't get each layer as a frame/sprite in Unity. Really seems like Unity's sprite editor should be made to work with PSD layers natively, and not the much more rarely used, and less-commonly supported PSB format. Glad I found this answer though.