- Home /
How to hide a part of a GUITexture that rotate ?
Hi,
Trying to design a small airplane game, I'm now facing a problem I don't know how to solve...
I want to add a king of altimeter instrument with on a side (green thing) the altitude value, and on the other one a graduated circle (red thing) that will rotate to simulate a real instrument (without graduated values). I was thinking about displaying only a part off this GUITexture maybe using alpha properties but I don't know how.
Here's a screenshot of the game to give you a better idea of what I'm trying to do:
did you think of a plane having a texture? When you use a decal shader, you can add 2 textures. the first one being your texture, and the second your alpha channel. I am not sure if this is doable with guitexture
Yeah I also though of using a Texture but I'd rather use only GUI tools. I'll take a look at how to use alpha layer to make only the part I want being visible. I'll keep you in touch with what I may find :P
Answer by Kardux · Jun 09, 2013 at 07:58 PM
Finally decided to change the way to do it so now it looks like this :
![alt text][1] [1]: /storage/temp/11824-plane_game_problem_solved.png
so this way I can just rotated the graduated wheel behind the main instrument Texture ;)
Anyway thanks to moghes for your help !
Your answer
Follow this Question
Related Questions
Flip over an object (smooth transition) 3 Answers
GUITexture is lagging my object 0 Answers
rotate normal map 1 Answer
A shader that rotate the texture on an object 1 Answer
Offset textures individually into specific world directions 2 Answers