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

Have to click button multiple times to trigger event

Discussion in 'UGUI & TextMesh Pro' started by hashmm2, Nov 19, 2019.

  1. hashmm2

    hashmm2

    Joined:
    Oct 21, 2019
    Posts:
    16
    I currently have a button that has a event connected to the onClick() functionality. During the testing phase when I had only 1 object in place it worked as intended (only 1 click is needed to trigger event).

    Now to the "full product" I copy/pasted that initial game object 30 times and changed the config as needed (had to change the image targets in a database and the position).

    No when I test it, most of the objects require me to click the button multiple times to trigger the event. But for some others 1 click does the trick. I don't see what the difference between those two types of objects is seeing as I copy/pasted the same initial object.

    Anyone faced a similar situation before or have a idea of how to resolve this?
     
  2. hashmm2

    hashmm2

    Joined:
    Oct 21, 2019
    Posts:
    16
    Found the issue, turns out somewhere during my edits I deleted the onclick() event. So once I fixed that up it's opening up with one click.
     
    JosueVDL likes this.