Search Unity

  1. Curious about what's going to be in 2021.1? Have a look at the 2021.1 beta blog post.
    Dismiss Notice

PSD Importer?

Discussion in '2D Experimental Preview' started by Aygtets, Dec 2, 2018.

  1. winryese

    winryese

    Joined:
    May 4, 2016
    Posts:
    17
    Same problem here. preview.4 - 1.2.0. Changing to 8-bit fixed it.
     
  2. SofielafeeStudio

    SofielafeeStudio

    Joined:
    Mar 26, 2018
    Posts:
    16
    Hi
    Is there any way to update an imported PSB without messing all previous bone geo and weighting setup?
    My use case is I have a rigged character already in place and need to add extra layers in the PSB and eventually add more bones weights etc. I've tried either to update the PSB directly or to import extra sprites but in both cases the existing rigging becomes obsolete. Any idea how to proceed and if there is any plan to support updates?
    Thanks
     
  3. Leo-Yaik

    Leo-Yaik

    Unity Technologies

    Joined:
    Aug 13, 2014
    Posts:
    332
    Hi, which software are you using (i.e. Photoshop or third party like Gimp)?
    Will it be possible to send us the 2 files to check it out?
     
  4. SofielafeeStudio

    SofielafeeStudio

    Joined:
    Mar 26, 2018
    Posts:
    16
    Hi Leo, the original materials are Pixel layers from Affinity Photo which are exported to PSD; the original materials are quite big so I'll try to mock up a sample thanks
     
  5. Kane_321

    Kane_321

    Joined:
    Aug 6, 2017
    Posts:
    6
    Is there any plans to add UI Images support to this tool? At the moment it makes a prefab using sprite renders, it would be very helpful if it also made a prefab with a canvas and UI Images already set up.

    Or does anyone know how I can extend it so that I can do this?
     
  6. IceTrooper

    IceTrooper

    Joined:
    Jul 19, 2015
    Posts:
    24
    Is it possible to control padding between sprites? It should fit in 512x512, but because of too wide padding it can't. Those green rects should be closer to each other.
    upload_2020-7-22_18-12-55.png

    EDIT: I found solution. PSDImporter.cs: Line 459 (PSDImporter 2.1.4.). Why did you guys hard code padding=4 and didn't expose it in the editor? :/
     
    Last edited: Jul 22, 2020
    EvOne likes this.
  7. TheSafestSafe

    TheSafestSafe

    Joined:
    Jun 25, 2018
    Posts:
    4
    Hi, any update on officially supporting PSD file format with the importer?
    I use krita which can only export in PSD not PSB.
     
  8. thehen2

    thehen2

    Joined:
    Apr 1, 2014
    Posts:
    46
    How can I use the AssetPostprocessor with the PSD Importer? I need to set spritePixelsPerUnit, mipmap settings etc. on import.

    Closest I can get is OnPreprocessAsset, but then I can't change anything.

    Code (CSharp):
    1.     void OnPreprocessAsset()
    2.     {
    3.         PSDImporter psdImporter = assetImporter as PSDImporter;
    4.         ???
    5.     }
     
    EvOne likes this.
  9. XxPleYxX

    XxPleYxX

    Joined:
    Jul 26, 2011
    Posts:
    36
    If you exceed the maximum size of the atlas (not the file size which is 80 MB) then the console shows the following error:

     
    Last edited: Oct 14, 2020
  10. nachiketanselms

    nachiketanselms

    Joined:
    Dec 22, 2020
    Posts:
    2
    uhhh but i named my psd to "character rig.psb" but it still was of the format of psd.. pls help me i dont have the money for photoshop and i wanna get most out of unity too
     

    Attached Files:

  11. Leo-Yaik

    Leo-Yaik

    Unity Technologies

    Joined:
    Aug 13, 2014
    Posts:
    332
    You can just change the extension to PSB.
     
  12. anyamation

    anyamation

    Joined:
    Jan 9, 2021
    Posts:
    2
    hi im having an issue where unity is not recognizing my .psb file when I go to "import new assets" my .psb files are not showing up only my .psd files are able to be addes?
     
  13. Leo-Yaik

    Leo-Yaik

    Unity Technologies

    Joined:
    Aug 13, 2014
    Posts:
    332
    Do you have the PSDImporter package installed?
     
unityunity