Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

_CameraSortingLayerTexture Wrong Position

Discussion in '2D' started by TomTheMan59, Oct 27, 2021.

  1. TomTheMan59

    TomTheMan59

    Joined:
    Mar 8, 2021
    Posts:
    353
    I cannot seem to get the layers under the sprite to be correctly positioned. It renders everything correctly, but I have to be far away from the center of the object for it to show up. Here is my graph.

    Screen Shot 2021-10-27 at 3.06.07 PM.png

    Is anyone able to see what I am doing wrong?'

    The smaller red square in the bottom left is the real object, the sprite with the shader is in the upper right corner. It shouldn't have to be far away from the object for it to show what's behind it.
    Screen Shot 2021-10-27 at 3.08.55 PM.png