Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

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,344
    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.