Search Unity

  1. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Let us know a bit about your interests, and if you'd like to become more directly involved. Take our survey!
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  5. 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.



    Mar 21, 2014
    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. BannockUK


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