Author Topic: sometimes some ui-sprite got wrong position  (Read 200 times)

joonyboy

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
sometimes some ui-sprite got wrong position
« on: June 18, 2017, 08:03:44 PM »
when active/deactive panel (include some sprites) some elements sometimes got wrong position.

I already set anchors with parent object.

it always occured in mobile device

how can i fix it

anyone please give me a hand :'(

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 316
  • -Receive: 1149
  • Posts: 22,027
  • Toronto, Canada
    • View Profile
Re: sometimes some ui-sprite got wrong position
« Reply #1 on: June 18, 2017, 08:20:04 PM »
Sounds like you may have anchoring set up in a way where you have certain widgets anchored to others, and have some update in OnEnable/Start while others in Update or something similar.

Keep in mind you can always simply set panel's alpha to 0. This will hide that panel exactly the same way as disabling it would, but it won't mess up your anchoring. Performance will be the same.

joonyboy

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: sometimes some ui-sprite got wrong position
« Reply #2 on: June 18, 2017, 08:30:26 PM »
oh I didn't think about that, alpha

I should try that

thanks