Search Unity

Bug UI image not blocking click

Discussion in 'UGUI & TextMesh Pro' started by Only4gamers, Feb 26, 2024.

  1. Only4gamers

    Only4gamers

    Joined:
    Nov 8, 2019
    Posts:
    327
    Hi there,
    I recently started a project in Unity 2022.3.12 and noticed that images do not block the mouse click like they did in previous versions of Unity. Raycast Target is enabled in the image, the Graphic raycaster of the canvas is on default settings. Adding a button component to the image fixes the issue.

    Am I doing something wrong or is this a bug?
     
  2. xucian

    xucian

    Joined:
    Mar 7, 2016
    Posts:
    846
    Sounds like the new input system?

    Installation
    UISupport

    Edit > Project Settings > Player, under Active Input Handlingx. enable both the old and the new system, that's what I do for my projects.
     
    Only4gamers likes this.