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

Question sprite problem

Discussion in 'Editor & General Support' started by Mustafaa3883, Apr 5, 2023.

  1. Mustafaa3883

    Mustafaa3883

    Joined:
    Aug 16, 2022
    Posts:
    6
    English
    In Unity my sprites vary in size across different platforms.
    first photo unity
    second photo mobile
    Turkish
    Unityde spritelarımın farklı platformlarda boyutları değişiyor.
    ilk fotoğraf unitydeki hali
    ikinci fotoğraf mobildeki hali
     

    Attached Files:

    Last edited: Apr 5, 2023
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,456
    For UI, use a canvas and anchors (like anchor the hearts in the top left corner) and enable canvas scale with screen size.
     
  3. Mustafaa3883

    Mustafaa3883

    Joined:
    Aug 16, 2022
    Posts:
    6
    Not to fix the UI. I want to fix the sprite. I want a sprite that looks the same size on every platform.
     
  4. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,456
    Are the sprites also in UI or rendered via the camera?
    In the editor change the game view aspect ratio and resolution to see if it's a ratio issue or resolution issue
     
  5. Mustafaa3883

    Mustafaa3883

    Joined:
    Aug 16, 2022
    Posts:
    6
    rendering on camera
    upload_2023-4-5_17-16-49.png
     

    Attached Files:

  6. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,456
    And?...
     
  7. Mustafaa3883

    Mustafaa3883

    Joined:
    Aug 16, 2022
    Posts:
    6
    I don't know exactly how to do this problem starts here
     
  8. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,456
    That's a start as I had said
     
    sonolil likes this.