Hello Guest

Author Topic: Anchor problem  (Read 4612 times)

oguztecimer

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 5
    • View Profile
Anchor problem
« on: March 20, 2013, 03:34:16 pm »
Hello. I just realized that my anchor settings does not work. Whereever i set the anchor sprites still rotate around their center and they initialized based on their center even though i set their anchors elsewhere. Am i missing something?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Anchor problem
« Reply #1 on: March 20, 2013, 03:35:26 pm »
Did you set the Unity transform widget to transform around "Pivot" and "Local"? This is the button at the top left of the Unity toolbar.

oguztecimer

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Anchor problem
« Reply #2 on: March 20, 2013, 03:46:17 pm »
Yep it works fine now. 
Thanks a lot.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Anchor problem
« Reply #3 on: March 20, 2013, 04:02:32 pm »
This only changes how Unity rotates an object. That selection doesn't actually change the pivot/anchor, its already at the correct position.
If you've got it set to center, then it will always rotate from the center, and position will change to compensate for this.