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. Dismiss Notice

Question Unity 2D problem with imported pixel art

Discussion in '2D' started by Dywanix, Aug 30, 2023.

  1. Dywanix

    Dywanix

    Joined:
    Apr 1, 2021
    Posts:
    1
    Hi!
    I have a small problem with graphics in unity because after importing they look completely different than in photoshop in terms of size. The background is added on the grid and painted by tile pallete. Can anyone tell why there is such a difference? In photoshop everything is 32x32
    Zrzut ekranu 2023-08-30 020727.png Zrzut ekranu 2023-08-30 021325.png
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,710
    Nope, but you can!

    Don't start with "Everything."

    Start with ONE THING.

    Put a 32x32 sprite in your scene, put a reference 1x1x1 default cube next to it and work until that lines up PERFECTLY.

    Adjustments may exist at almost any levels: import, sprite cutout, sprite renderer, transforms (including parent transforms), other scripts that could be manipulating sizes, camera and settings, etc.
     
    Last edited: Sep 1, 2023
  3. karliss_coldwild

    karliss_coldwild

    Joined:
    Oct 1, 2020
    Posts:
    530
    Make sure you have properly configured pixels per unit for all the sprites and also don't have any hierarchy objects with scale other than one.
     
    Kurt-Dekker likes this.