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

Question How to use UIDocument with Event System?

Discussion in 'UI Toolkit' started by ultimate2106, Sep 19, 2022.

  1. ultimate2106

    ultimate2106

    Joined:
    Nov 18, 2017
    Posts:
    26
    Hey guys :)
    So in my game I am using a Canvas and Images to display cards and I have buttons on them to click on them.

    Now I wanted to create a Pause Menu with the UI Toolkit but the Event System kinda blocks the interaction with Buttons in the Pause Menu that I made with the UI Builder. How to handle this problem?
     
  2. ultimate2106

    ultimate2106

    Joined:
    Nov 18, 2017
    Posts:
    26
    Okay it seems this is related to the use of "Screen Space - Overlay" on the Canvas because with "Screen Space - Camera" it works totally fine!
     
  3. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    6,003