Author Topic: (3.0.8 f5) TweenPosition in UIPanel jiggling  (Read 2310 times)

Asse

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 70
    • View Profile
(3.0.8 f5) TweenPosition in UIPanel jiggling
« on: January 06, 2014, 08:30:57 AM »
When using TweenPosition on a UIPanel it jiggles while moving (TweenPosition.value is updated correctly). This error was also present in 3.0.8 f3.

I'll send you a test project.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: (3.0.8 f5) TweenPosition in UIPanel jiggling
« Reply #1 on: January 06, 2014, 10:57:58 AM »
I see no jittering. It does, however, attempt to stay pixel perfect as you move it, snapping to pixels. Since your scene uses ortho camera size of 0.19 for some reason, your pixel size ends up being more than 5 times of what it should be. Ortho camera size should remain at 1 when UIRoot is used.

Asse

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 70
    • View Profile
Re: (3.0.8 f5) TweenPosition in UIPanel jiggling
« Reply #2 on: January 07, 2014, 04:58:55 AM »
Ok, but the same happens in our real project with an ortho size of one.

Could you tell me what I have to change to make same labels not using pixel perfect? I've tried not using UILabel.MakePixelPerfect or not using crispness. The result stayed the same. UIDrawcall moved smoothly, UILabel jiggled (I guess because of uvs to make pixel perfect).

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: (3.0.8 f5) TweenPosition in UIPanel jiggling
« Reply #3 on: January 07, 2014, 09:07:26 AM »
Labels always snap to pixels. If they didn't they would look blurry while being tweened. Why are you moving them so slowly anyhow?

dwilday

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: (3.0.8 f5) TweenPosition in UIPanel jiggling
« Reply #4 on: January 20, 2014, 05:55:53 PM »
Text snapping to pixel on Tween seems like it would be incredibly jittery.  Why would it matter why the user wants to animate slowly?  At the very least the ability to disable snapping on tween would be very very welcome.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: (3.0.8 f5) TweenPosition in UIPanel jiggling
« Reply #5 on: January 21, 2014, 01:16:54 AM »
It's not the tweens that are at fault here but the labels themselves. I'll likely address this in a future update.