Search Unity

Question UI Element get click on outside of that element when resolution changed

Discussion in 'UGUI & TextMesh Pro' started by DevGulpi, Jul 29, 2022.

  1. DevGulpi

    DevGulpi

    Joined:
    Aug 6, 2021
    Posts:
    17
    upload_2022-7-29_10-29-9.png
    I made option system which have resolution buttons and brightness slider
    After resolution changed, brightness slider get click on outside of slider's territory
    I used LayoutRebuilder.ForceRebuildLayoutImmediate and RectTransform.ForceUpdateRectTransforms (to slider rect, slider fill rect, slider handle rect) to solve this problem, but nothing can helped me

    Are there other things that I can try more?
    I change timeScale to 0 when option popup is opened. This can be a reason of this problem?