Search Unity

Question Unity Event Trigger not working

Discussion in 'Editor & General Support' started by stingnessz, Nov 23, 2022.

  1. stingnessz

    stingnessz

    Joined:
    Mar 18, 2013
    Posts:
    10
    I've never been able to get a unity event trigger to work. Can someone tell me what I'm doing wrong?

    The NamePlateScript.Test:
    Code (CSharp):
    1.     public void Test()
    2.     {
    3.         print("triggered");
    4.         isTargeted = true;
    5.     }
    I'm trying to drag and drop my ui components. Every tutorial I find talks about using unity event system, but I just can't get it to work :(
     
    Last edited: Nov 23, 2022
  2. stingnessz

    stingnessz

    Joined:
    Mar 18, 2013
    Posts:
    10
    I found another tutorial that helped me.