Search Unity

OnClick() public function not available?

Discussion in 'UGUI & TextMesh Pro' started by MackaroniCheese, Dec 23, 2018.

  1. MackaroniCheese

    MackaroniCheese

    Joined:
    Oct 16, 2017
    Posts:
    5
    Hello All,

    I have a script (see attached) which I added to a game object called "Button Script" (which contains just this script and a transform). However, when I add this game object into an OnClick() of a button, the script appears but the function within it does not?

    Thanks in advance :)
     

    Attached Files: