Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Sprite prefab has a default Z position which can't be changed

Discussion in '2D' started by kevdotbadger, Nov 14, 2013.

  1. kevdotbadger

    kevdotbadger

    Joined:
    Sep 13, 2011
    Posts:
    82
    I've moved a sprite into a prefab and when I move the prefab onto the scene I can't changed it's Z position. Also another annoyance is that the Z value gets set to the X value. So every time the X value changes, the Z gets set to that.

    Is there an other sight I'm missing here?

    EDIT

    Ignore this. I'm an idiot. I have a tile map script I'm working on to snap tiles to the grid, that z values was getting overwrote thanks to that.
     
    Last edited: Nov 14, 2013
  2. unitylover

    unitylover

    Joined:
    Jul 6, 2013
    Posts:
    345
    Now that is a strange bug indeed. I'm going to try to duplicate the bug and I'll get back to you.

    EDIT

    Vector2 is your friend! :)
     
    Last edited: Nov 14, 2013