Search Unity

Feedback Enable more than 1 parameter for methods which are called by events like OnClick or OnSelect

Discussion in 'Editor & General Support' started by A-AGames, Feb 10, 2020.

  1. A-AGames

    A-AGames

    Joined:
    Nov 24, 2019
    Posts:
    8
    Dear Unity Team,
    I have a suggestion to improve Unity. There is a restriction that you can just pass 1 parameter in a method which is called by an event like OnClick or OnSelect.

    So this is not possible sadly:

    Code (CSharp):
    1. public void OnSelectInputField(int inputFieldNumber, bool deselect, int whichPanel, string whichText)
    2.     {
    3.         // Do something
    4.     }