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. Dismiss Notice

Sprite is not aligned at center

Discussion in '2D' started by surajsirohi1008, Sep 6, 2017.

  1. surajsirohi1008

    surajsirohi1008

    Joined:
    Jun 21, 2016
    Posts:
    266
    2 images below, first one shows the problem, where the sprite is off the centre, it's positioned at left, this makes animation abruptly shift to left, second image is what I want, for sprite to be in centre.

    I make my animations in after effects and then I export them in PNG sequence.

    How can I make the sprite in centre?




    Screen Shot 2017-09-06 at 2.31.01 PM.png
    Screen Shot 2017-09-06 at 2.31.16 PM.png Sp
     
    lihail123 likes this.
  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,841
    IceKapper, Mobazy and surajsirohi1008 like this.
  3. KokodokoGames

    KokodokoGames

    Joined:
    May 20, 2014
    Posts:
    40
    This is not working for me. I have two sprites centered in the sprite editor. But in the scene, when I place them at 0,0 they don't appear in the same spot. What can be the cause?
     
  4. ed_s

    ed_s

    Unity Technologies

    Joined:
    Apr 17, 2015
    Posts:
    165
    Your sprites have their Pivot set to Center? Where do they show up in the scene if you set their Position to 0,0?