How would i draw a guitexture that is always over one gameobject?
May 09 '10 at 12:39 PM
Can't you use a mesh instead? GUI items will render over physical objects so you can see them through walls
Use a script like this...it uses GUIText, but you can change that to GUITexture easily enough.
May 09 '10 at 02:15 PM
I tried this, but it gives really odd results, the mesh of the object just dissapears and is very far away from where it should be... what's happening?
@Fishman92: Sounds like you're not using it correctly, because the script doesn't affect the game object at all, it's just for the GUIText object.
got it to work, but how do i scale down the texture?? It's huge!
@Fishman92: Either change the scale, or change the pixel inset values.
tried this, but it doesn't always go directly over the target, depending on where you're looking from; it often appears quite away above but other times dead on.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
Once you sign in you will be able to subscribe for any updates here
Answers and Comments
The best place to ask and answer questions about development with Unity. Check out our FAQ for more information.
To help users post good questions and use the site effectively we have posted a tutorial video. Please check it out.
asked: May 09 '10 at 12:39 PM
Seen: 1643 times
Last Updated: May 09 '10 at 12:39 PM
Find 2D Texture via Script to use in Static Function
How I can 3D model on GUI texture ?
Can't add component GUITexture
casting gameObject as a GUITexture
New GameObject with GUITexture is a Horribly Incorrect Size
gameobject move in real = move in GUI
Show static? for slender game.
Touch are laggy on ipod touch(4th gen.)
Masking GameObject's GuiTexture
Changing gameobject assigned to a variable on input.getkey.