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

Question Why I cannot find the function?

Discussion in 'Scripting' started by unity_tlv1IB9XIAbbtw, Oct 17, 2021.

  1. unity_tlv1IB9XIAbbtw

    unity_tlv1IB9XIAbbtw

    Joined:
    Sep 30, 2020
    Posts:
    25
    My problem is, I cannot find my public function. Here's the script:
    upload_2021-10-17_17-38-39.png
    I put this in my Canva and drag it here:
    upload_2021-10-17_17-39-16.png
    But there's no function name like that. Any suggestion?
     
  2. sisenikelet

    sisenikelet

    Joined:
    Jan 19, 2020
    Posts:
    2
    This is because there are multiple parameters. Just to test, if you make a new function with 1 parameter, it should show up in the inspector.
     
    Bunny83 and unity_tlv1IB9XIAbbtw like this.
  3. unity_tlv1IB9XIAbbtw

    unity_tlv1IB9XIAbbtw

    Joined:
    Sep 30, 2020
    Posts:
    25
    Thanks for your help!