Hi All,
I need some help . i am trying to create 3D progress bar in scene view. All post I have came across so far showed 2d Progress bar. I need to make it in 3D. Anyone has any idea how to make it please help me out. It would be great help…
Have a nice weekend
Sumit
Hi,
you could simply use a box or another simple 3d model and vary its scale in one axis to display the progress.
You should also be able to link the box to a 2d progress bar.
Hope this helps 
mysos
Thanks a lot for your reply. But how to link the box to a 2d progress bar? I did not get that
The Unity Scripting Reference has a nice overview of the EditorGUI.ProgressBar which has a value to display the progress.
So you could just make two variables in your script for your box: scale_min and scale_max, and read out the progress from the gui progress bar. If the value == 0, scale of your box = scale_min, else if value == 1, scale of your box is scale_max, else somewhat between.
So in the game on the one hand you would use the 2d gui progress bar (which you cant actually see, but it exists) and send its value to your box. I think this schould work, perhaps there is a smoother way, but thats the way i would try.
mysos
Hi,
Thanks for ur quick response. I really appreciate for that. I have created C sharp scrip in Asset folder in my project folder. I am trying to run example scrip given in unity scripting reference. But it shows some error " Parsing error" in the very first line of class.
class EditorGUIProgressBar extends EditorWindow {
var armor : int = 20;
var damage : int = 80;
@MenuItem(“Examples/Display Info”)
static function Init() {
var window = GetWindow(EditorGUIProgressBar);
window.Show();
}
function OnGUI() {
armor = EditorGUI.IntSlider(Rect(3,3,position.width-6,15), “Armor:”, armor, 0, 100);
damage = EditorGUI.IntSlider(Rect(3,25,position.width-6,15), “Damage:”, damage, 0, 100);
EditorGUI.ProgressBar(Rect(3,45,position.width-6,20),armor/100.0, “Armor”);
EditorGUI.ProgressBar(Rect(3,70,position.width-6,20),damage/100.0, “Damage”);
}
}
Any idea what can be the reason for this error. I apologize for asking too much details. Actually I am new to Unity. I am trying to learn new stuff. Hope you understand.
Sumit
variables are wrong.
public int armor = 20;
public int damage = 80;

Hi,
Thanks for your reply. This is extended EditorWindow script. Format for this script like this only. I have checked all variables. Its a javascript. 
First I also thought variables are wrong but its not. 
Sumit