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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Sprite cutting when changing material

Discussion in '2D' started by miszczyk, Sep 8, 2015.

  1. miszczyk

    miszczyk

    Joined:
    Sep 10, 2014
    Posts:
    8
    Hi, i have a problem with unity sprite renderer. When I put sprite on scene with default sprite material, edges are smooth. However when I change material, sprite get cut and / or losing all round edges. How can i change this?

    Standard sprite:
    Zrzut ekranu 2015-09-08 o 13.56.41.png

    With changed material:
    Zrzut ekranu 2015-09-08 o 13.56.57.png

    Thanks in advance for all answers.
     
  2. ColossalPaul

    ColossalPaul

    Unity Technologies

    Joined:
    May 1, 2013
    Posts:
    174
    It depends on the shader and how it's implemented. So how is it implemented?
     
  3. miszczyk

    miszczyk

    Joined:
    Sep 10, 2014
    Posts:
    8
    Well, first smooth picture is standard sprites-default material (simply drag and dropped sprite on scene). Second one is standard diffuse unity material. I drag and dropped sprite on scene and then created simple diffuse material, and changed material of the sprite. I did this so I could use shared material to change all objects color with script attached to one object.