progress bar - Changing the color of an EditorGUI.ProgressBar? -


i want show progressbar. using code:

editorgui.progressbar(rect(3,45,100-6,20),20/700.0, "armor"); 

i want change color of progressbar light blue color red color. how can this?

as stands, doesn't appear can. however, had similar issue wanted customized bar different colors denote different things. ended using editorgui.drawpreviewtexture. if initialize colors want use texture2d, pass them function placed rectangles, can create portions of bar can change size , location give appearance of standalone progress bar, if keep positions , size updated in update() function.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -