Search Unity

Text box to add messages to.

Discussion in 'Immediate Mode GUI (IMGUI)' started by Trevise, Sep 10, 2014.

  1. Trevise

    Trevise

    Joined:
    Mar 31, 2014
    Posts:
    13
    I'd like to make a text box on the GUI that allows me to send messages eg: You hit player X, You killed player X, You can't do that, etc to a alert type window. After so many seconds the messages disappear and if you are receiving a lot of messages it will scroll. I had this working in DF-GUI using AddControl then Destorying the control after seconds but can't figure out how to make it work in UGUI. Any help would be greatly appreciated.
     
  2. HolBol

    HolBol

    Joined:
    Feb 9, 2010
    Posts:
    2,887
    Use a GUI.Label inside a GUI.Box.