Search Unity

Question How can I refer the button which calls a script function

Discussion in 'Editor & General Support' started by mfatihbarut, Dec 10, 2022.

  1. mfatihbarut

    mfatihbarut

    Joined:
    Apr 11, 2018
    Posts:
    1,060
    Hi all,
    I have an object it has a script and that script has all the needed function.
    A UI button use that script to call a function in it.
    How can I refer that button as "The button who calls this function"
    (I don't want to use gameobjectfind or findwithtag)