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

Sprite shape Edge not visible in game view, but visible in editor view.

Discussion in '2D' started by samavenkatadithya, Oct 22, 2022.

  1. samavenkatadithya

    samavenkatadithya

    Joined:
    Jun 20, 2020
    Posts:
    2
    I have set a valid spriteshape profile to the sprite shape controller.
    I am using a default sprite renderer. and still the edge doesn't render in game view.
    I don't get why the fill is visible but not the edge. i have tried using different sprites for edge, it still isn't visible.
    Please help. this has taken so much of my time.
     

    Attached Files:

  2. Venkify

    Venkify

    Unity Technologies

    Joined:
    Apr 7, 2015
    Posts:
    619
    Can you please post a sample scene/project?
     
  3. samavenkatadithya

    samavenkatadithya

    Joined:
    Jun 20, 2020
    Posts:
    2
    found the problem. for some reason the sprite shape was only visible when the Z was 0.19, maybe some parent is also at that level. I have never changed the z level of any objects, as am using a 2D project. But it did see that sometimes unity changes Z when I move and object in the hierarchy.

    Couldn't confirm whether this is the case, as i moved to an alternative method.