- Home /
There is no question here that could be answered in the format used by this site.
Drawing a display panel with textures.
I've heard that SetPixels is very slow? I want to be able to draw shapes, words with a font, etc on a textures at a smooth enough time interval. An example of something I'd want to accomplish is a panel with a scolling bar to display the progress of an operation being done on a machine with a percentage value showing how much is done as well as some other things. I'd like it to be as smooth as possible.
I've done things like this: () This was in Garry's Mod and if you can see it, I got the roulette wheel circle thing to spin really smoothly with no lag at all as well as some other animations on the betting board itself. Why isn't unity this fast?
Answer by dorpeleg · Apr 11, 2013 at 05:21 PM
Use a plane with a semi-transparent texture and rotate the plane.
You call also animate your texture with a simple script.
It all depends on what you are trying to accomplish.
If you can give some more detail that can help.
Well, I was looking for something like a little slider bar (starts out as nothing and slowly grows with time) with a border and text on the bar to denote its percent completion. I just didn't know if SetPixels would solve my solution due to its performance problems?
Someone closed this question... not sure why.
You can use a plane with a texture on it and re-size it using code.
Follow this Question
Related Questions
Is it bad to have this many materials? 2 Answers
Material Not Reverting Back 2 Answers
Renderer Removed When Scene Started 0 Answers
Having a problem with the second material (on the same renderer) 0 Answers
Distribute terrain in zones 3 Answers