Search Unity

Giving click in a button how to add a paragraph of code

Discussion in 'Immediate Mode GUI (IMGUI)' started by Ixquic2D, Oct 27, 2014.

  1. Ixquic2D

    Ixquic2D

    Joined:
    Sep 9, 2014
    Posts:
    25
    Hello all, do you know how to add a paragraph of code when give a click in a button. For example when a button is pressed then appear a pop up window with some text. Thx, :)
     
  2. 420BlazeIt

    420BlazeIt

    Joined:
    Aug 14, 2014
    Posts:
    102
    You could make a script that has a button and a "paragraph of code" but the scrript hides the "paragraph of code" unless the button is pressed :)
    That should help.