Search Unity

Buttons do not work

Discussion in 'UI Toolkit' started by rucesocial, Mar 16, 2020.

  1. rucesocial

    rucesocial

    Joined:
    Mar 13, 2020
    Posts:
    9
    It doesn't work when you click the buttons on the screen. What could be the reasons ?
     
  2. uMathieu

    uMathieu

    Unity Technologies

    Joined:
    Jun 6, 2017
    Posts:
    398
    Are you using the runtime experimental demo or inside an editor window? If you're on Runtiome, don't forget to add an EventSystem component next to your PanelRenderer otherwise no events will be sent to your VisualElement hierarchy.
     
  3. sharifcse01

    sharifcse01

    Joined:
    Dec 8, 2019
    Posts:
    1
    thank you
     
  4. joe-cabb

    joe-cabb

    Joined:
    May 28, 2017
    Posts:
    6
    Can you clarify this? In the Panel object that was created, there is (under the UI Elements menu) there is a Panel Renderer and an Event System component on the object. Is there any configuration that needs to happen between them?
     
  5. uDamian

    uDamian

    Unity Technologies

    Joined:
    Dec 11, 2017
    Posts:
    1,231
    There shouldn't be, just make sure you have the correct Event System (it's named the same as the default Event System). It's the one without a proper icon.