Search Unity

GUI Texture Does Not Appear in Game View

Discussion in 'Immediate Mode GUI (IMGUI)' started by PirateMonkey, Sep 11, 2014.

  1. PirateMonkey

    PirateMonkey

    Joined:
    Jun 24, 2014
    Posts:
    28
    Hey,

    I know this topic has been covered before, but nothing is working for me. I am trying to insert a GUI Texture into my game, but I am unable to see it ANYWHERE. When you create a GUI Texture (GameObject > Create Other > ...) you are supposed to be able to see a unity logo between position 0 and 1 when in game view. I have tested this in a New Scene and it worked. In my current scene, nothing shows up. I've tried adjusting my camera view, object sizes and turning off all other layers, but nothing seems to work.

    Is there something obvious I'm missing here? I need these textures in order to create my HUD, so wanna get these working.

    Thanks!
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    GUIElements use viewport coords, so the x/y must be within 0..1 to be visible. Also the camera must have a GUILayer component. But the new GUI in 4.6 basically makes these type of GUI objects obsolete (finally!), so it would be hard to recommend using them at this point.

    --Eric
     
    PirateMonkey likes this.
  3. PirateMonkey

    PirateMonkey

    Joined:
    Jun 24, 2014
    Posts:
    28
    Ah the GUILayer on the camera was off. Thanks!!