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

Make ui ignore all mouse activites

Discussion in 'UGUI & TextMesh Pro' started by CaringKarol, Aug 21, 2019.

  1. CaringKarol

    CaringKarol

    Joined:
    Jan 22, 2018
    Posts:
    28
    I added a canvas group component to my ui canvas and unchecked "blocks raycasts." However, the canvas still picks up my mouse clicks and deselects the previously selected button. I was wondering how to make my ui ignore all mouse clicks since i just want it to be controlled through keyboard input.

    Thanks.
     
  2. MSplitz-PsychoK

    MSplitz-PsychoK

    Joined:
    May 16, 2015
    Posts:
    1,278
    Disable/remove your GraphicRaycaster

    raycaster.enabled = false;

    c1.PNG
     
  3. CaringKarol

    CaringKarol

    Joined:
    Jan 22, 2018
    Posts:
    28
    It's still detecting my mouse click/input