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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Display touch and GUI Touch

Discussion in 'UGUI & TextMesh Pro' started by Talon911, Aug 19, 2015.

  1. Talon911

    Talon911

    Joined:
    Jul 25, 2015
    Posts:
    7
    Hello, I've wrote a test game, everytime I touch the display a text will be displayed otherwise nothing will be displayed.
    Now I've implemented a Button into the Game and if I touch the Button the text will be displayed but the button does nothing(I've added scripts to the button).

    How can I fix this problem?
     
  2. vakabaka

    vakabaka

    Joined:
    Jul 21, 2014
    Posts:
    1,153
    ui button, event system, add script to button, add on click event, choose button, choose funktion in script (that should be run, and the funktion is public ) ?
     
  3. Talon911

    Talon911

    Joined:
    Jul 25, 2015
    Posts:
    7
    Yes I added to the script to the ui button, and I've set up the on click event.
    But It still don't work.