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. Dismiss Notice

Resolved How to ignore raycast

Discussion in 'UI Toolkit' started by masak, May 15, 2023.

  1. masak

    masak

    Joined:
    Aug 14, 2011
    Posts:
    51
    Hello,

    I'm working on simple transition animation.
    2023-05-15_18h46_42.png

    I applied .title_top_elem_btn to #Btn.
    And I tested.
    However, #Icon and #Name blocked the mouse hovering.
    In ugui, I simply disable raycastTarget property.
    I want to know the equivalent of raycastTarget in ui toolkit.

    Thanks
     
  2. bartuq

    bartuq

    Joined:
    Sep 26, 2016
    Posts:
    127
    Change the Picking Mode to Ignore in the Inspector window.
     

    Attached Files:

    C-UITools and masak like this.
  3. masak

    masak

    Joined:
    Aug 14, 2011
    Posts:
    51
    That helps me, Thanks!!!!