title: How do I get the dropdown that called my OnListener handler?
body: <p>I have an array of 13 dropdown boxes, each attached to an event in my game. I have AddListener events attached to each, but they all call the same routine. In the routine, how can I determine from which dropdown object it was called?</p>
  
  <p>Thanks.</p>
  
  <pre><code>using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  using UnityEngine.UI;
  
  public class SelectSounds : MonoBehaviour
  {
      public TMPro.TMP_Dropdown[] dropdownSFX = new TMPro.TMP_Dropdown[13];
      public Toggle[] soundToggles = new Toggle[13];
  
      void Awake()
      {
      for (int i = 0; i &lt; 13; i++)
      {
          var temp = i;
  
          dropdownSFX[i].onValueChanged.AddListener(delegate { DropdownValueChanged(temp); }); // This works fine on value change
  
          dropdownSFX[i].OnPointerClick.AddListener(delegate { DropdownValueChanged(temp); });
   // Gets error: TMP_Dropdown.OnPointerClick(PointerEventData)' is a method, which is not valid in the given context
      }
  
      private void DropdownValueChanged(int newPosition)
      {
  
      // Get the value of the dropdown, and from which dropdown it came?
          Debug.Log("In DropdownVC: " + newPosition);
          lastSelected = newPosition;
      }
  
  }
  </code></pre>