Author Topic: Anchor Rotated Button - Help!  (Read 1729 times)

Dune

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 16
    • View Profile
Anchor Rotated Button - Help!
« on: October 22, 2016, 12:21:35 AM »
Having troubles anchoring a rotated button. Setting anchors in editor or in code not having the desired effects. I'd hoped that when rotated (90 degrees clockwise), that left would now be top, top-right, right-bottom, and bottom-left. But then you can't anchor bottom to left / right handles on non-rotated objects in the editor. And if your pretend bottom is the left, ie treat it as left, it doesn't work that way either.

Help!

I can return to my old pre-NGUI way of handling it, don't rotate the button, but create a texture that is rotated in the paint program, and use it in a tall and narrow button. But I'd hoped, when I rotated the NGUI button and the text had rotated easily along with it, that anchoring would go along with it. No luck so far.


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Anchor Rotated Button - Help!
« Reply #1 on: October 24, 2016, 06:52:10 AM »
You can't have rotation and anchoring. Anchoring implies no rotation.