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
Post a Comment