Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Feature Request TwoPaneSplitView anchor--active

Discussion in 'UI Toolkit' started by Leslie-Young, May 29, 2021.

  1. Leslie-Young

    Leslie-Young

    Joined:
    Dec 24, 2008
    Posts:
    1,148
    I find that the dragline flicker on and off while dragging it since the :hover state keeps changing for it. Adding a new class which we can style might be solution to this. I tried it in a hacked version of TwoPaneSplitView and seems to work fine.

    We could then do something like this.
    .two-pane-split-view__dragline-anchor--active,
    .two-pane-split-view__dragline-anchor:hover {
    background-color: rgb(0, 172, 255);
    }

    before
    before.gif


    after
    after.gif
     
  2. Leslie-Young

    Leslie-Young

    Joined:
    Dec 24, 2008
    Posts:
    1,148
    and the content container's picking mode should probably default to ignore.
    I had to change it to that in my hacked version so that EventSystem.current.IsPointerOverGameObject would work correctly.