GUI Texture not visible

Hey,

I'm taking my first steps with the GUI-textures.This is what is did:

  • I made a cube in Unity
  • I deleted every Component.
  • then i've added the GUItexture
  • And i've selected a picture (.tiff).

But when i play the game , i can't see the GUItexture eanywhere. I have a 3d scene with camera and a cube. The camera follows the cube with " smooth Follow(script)". So that's my situation. Why can't i see the GUItexture i used?

-Thanks

Because the GUITexture needs specific x/y coordinates to show up on screen. They use 0 to 1 as viewport positioning, so if you're outside that, it won't show

If you want to show the GUITexture where the cube is, attach it to another object, and reposition it every frame from a script (using Camera.WorldToScreenPoint to get the new x/y positions)

Check the GUITexture Transform position values.. the X Y Z values must be between 0 to 1 values to avoid any strange behaviour. I find it easy to set the X Y and Z values to 0, then on the GUITexture component's PixelInset, set the values there,, the x & y locations on the screen and the width,height of your tiff file..

Just if someone looking for a similar issue, most of the time, it can be a silly mistake like , the GUIlayer is unchecked in the Camera. So if you tried everything and still can’t see the GUI Texture or Text, check if the GUILayer is unchecked in the Camera. I hope its help :slight_smile: