Search Unity

Unity 5 event trigger target

Discussion in 'UGUI & TextMesh Pro' started by ArtisV, Mar 6, 2015.

  1. ArtisV

    ArtisV

    Joined:
    Jun 25, 2013
    Posts:
    9
    Hello!
    How to set target script in Button Event trigger using Unity 5 ? Previously in 4.6 version I could drag gameobject in to target field and then from drop down choose gameobjects component script and choose public void function. But now at Unity 5 I can only drag gameobject in target field and I can not link it to script.

    Must be like this. (This is old 4.6 project converted to unity5)

    Capture.PNG

    But new project in Unity 5 I cant link to gameobject-Player, component PlayerControl script.

    Capture2.PNG
     
  2. ArtisV

    ArtisV

    Joined:
    Jun 25, 2013
    Posts:
    9
    Ok, I feel ashamed. Took many hours yesterday to think about this problem. Today discovered that I was in debug mode.:)
    Case closed. Thanks!