Search Unity

  1. Get all the Unite Berlin 2018 news on the blog.
    Dismiss Notice
  2. Unity 2018.2 has arrived! Read about it here.
    Dismiss Notice
  3. We're looking for your feedback on the platforms you use and how you use them. Let us know!
    Dismiss Notice
  4. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Learn more.
    Dismiss Notice
  6. ARCore is out of developer preview! Read about it here.
    Dismiss Notice
  7. Magic Leap’s Lumin SDK Technical Preview for Unity lets you get started creating content for Magic Leap One™. Find more information on our blog!
    Dismiss Notice
  8. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

Moving a UI panel with OnDrag() event causes its contents to "flutter"

Discussion in 'Unity UI & TextMesh Pro' started by MMOERPG, Jan 26, 2017.

  1. MMOERPG

    MMOERPG

    Joined:
    Mar 21, 2014
    Posts:
    42
    I'm working on my inventory UI. I have it working just fine with legacy UI but wanted to switch it over to the new UI system.

    I have a Panel(Inventory Panel) with a child Panel(Loot Window) with a grid layout group with children buttons(InventorySlot) with LayoutElement components.

    The Inventory Panel has a Canvas Group component and a script containing OnDrag() functions.

    Everything works except when I drag the Inventory Panel, the Inventory Slots flutter their displayed position by a few pixels however their position in the inspector remains constant. The "flutter" effect is reduced by turning "Pixel Perfect" off on the canvas, but then the text becomes blurry and the flutter remains, it just becomes less obvious.

    With the old UI system, I simply add GUI.DragWindow() at the end of my window function and everything works perfectly, no blurred text, no flutter, no jump to pivot point... either I'm missing something major or this new UI system is buggy.

    Anyone know what I'm missing? I'd like to move forward but if this is the expected behavior of the new UI system, ill just continue using the old one.
     
    Last edited: Jan 27, 2017
  2. Meh734

    Meh734

    Joined:
    Sep 1, 2013
    Posts:
    1
    Bumping. Can confirm I'm having this same issue. Did you happen to find a fix for this?