title: Set On End Edit Event from a Input Box (Text Mesh Pro) while runtime
body: <p>I am programming a game in Unity, but I have problems with the On End Edit Event on a Input box from Text Mesh Pro. I need to define the event while runtime (in code). I have really no idea how to approch this.</p>
  
  <p>Here is a picture from the event in the editor and I want it to connect to the PressedButton Method in the class PlayerConnectionManager:</p>
  
  <p><a href="https://i.stack.imgur.com/3sC4f.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3sC4f.png" alt="Here is a picture from the event in the editor"></a></p>
  
  <p>Thaks for any kind of help!</p>