Search Unity

How do I type my own parameter in a function on an input field?

Discussion in 'Immediate Mode GUI (IMGUI)' started by mellooow9, Jan 24, 2020.

  1. mellooow9

    mellooow9

    Joined:
    Dec 25, 2019
    Posts:
    31


    This function takes a string as a parameter, but since it's on an input box, it's taking the text of the input field as the parameter. How do I make it so I can type in my own string instead?

    (this is for unity 2017)
     
  2. SisusCo

    SisusCo

    Joined:
    Jan 29, 2019
    Posts:
    1,331
    It looks like the ExecuteCustomTrigger method just doesn't have any parameters. If you target a method that has a string parameter the text box should appear.