Search Unity

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

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

Thread Status:
Not open for further replies.
  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:
    346
    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
  3. Titan11_11

    Titan11_11

    Joined:
    Feb 22, 2022
    Posts:
    1
    vector 2
     
  4. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,459
    You just necroed a thread from 2013 to post this.
     
    MousePods and Kurt-Dekker like this.
Thread Status:
Not open for further replies.