Search Unity

[doubt] Unity GUI Label with draw texture

Discussion in 'Immediate Mode GUI (IMGUI)' started by DarkX, Feb 23, 2015.

  1. DarkX

    DarkX

    Joined:
    Apr 6, 2014
    Posts:
    42
    Hey guys i want to know how i can make this

    http://www.twinfinite.net/wp-content/uploads/2014/11/Far-Cry®-4_20141118141504.jpg

    http://i.ytimg.com/vi/mJC5dzG0Jdw/maxresdefault.jpg

    Example

    Hold F to Pick- up

    but replacing the F for one image like the image above

    I've the images but i dont know how i can put in the screen

    i am making that this way

    Code (csharp):
    1.  
    2. GUI.skin.label.alignment = TextAnchor.MiddleCenter;
    3. GUI.Label(new Rect(0,0,Screen.width,Screen.height),"Hold:<color=#47B2B2> F </color> to pick-up the item");
    4.  
    Thanks in advance
     
    Last edited: Feb 23, 2015
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,435
    You could use the new UI (if your project is 4.6=> ),
    Add Canvas, then Panel, then under it image and text.
     
  3. DarkX

    DarkX

    Joined:
    Apr 6, 2014
    Posts:
    42
    Good Idea guy but no have other way to make this with the old UI system

    if no i'll try learn the new UI

    Thanks :p
     
  4. DarkX

    DarkX

    Joined:
    Apr 6, 2014
    Posts:
    42
    no one ?