Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Some area buttons cannot be clicked

Discussion in 'General Discussion' started by wanderw, Aug 19, 2022.

  1. wanderw

    wanderw

    Joined:
    Dec 8, 2014
    Posts:
    5
    I am making a very simple scene, the scene only contains Camera, EventSystem, Canvas, there is a Button under Canvas, Button is full of Canvas,Buttons can be clicked under the editor, all fields can be。After packaging the exe,My monitor resolution is 4K (3840*1080), open the exe and set the resolution to 2560*1080,There are some areas on the right that cannot be clicked, about 20%,Then set the program resolution to 3840*1080, all areas can be clicked。Next, I set a custom resolution with the graphics card, set it to 2560*1080, and set the display resolution to 2560*1080. After opening the program, you can also click in all areas.The version of unity I am using is Unity2021.3.8f1c1 and Unity2022.1.13f1c1。When I was at a loss, I installed unity2020.3.18f1c1. After packaging, the resolution was set to 2560*1080, and all areas could be clicked.
     
  2. wanderw

    wanderw

    Joined:
    Dec 8, 2014
    Posts:
    5
    I have found the cause of the problem,The picture is the GraphicRaycaster script comparison between unity 2021.3.8 and unity 2020.3.18 UGUI
     

    Attached Files:

    • 1.png
      1.png
      File size:
      148.6 KB
      Views:
      135
  3. sacb0y

    sacb0y

    Joined:
    May 9, 2016
    Posts:
    787
    Yeah the latest 2021.3.6+ versions have broken raycasters or at least changed how they worked enough old UIs don't work.

    There's many threads complaining about this.