dbrizov / NaughtyAttributes

Attribute Extensions for Unity
MIT License
4.53k stars 464 forks source link

Progress Bar Hidden Value #352

Open ozgurgurbuz167 opened 1 year ago

ozgurgurbuz167 commented 1 year ago

I tried to find the Editor codes in order to manipulate the first value of the progress bar but couldn't find anything about this. How to make the first value visible?

TylerTemp commented 8 months ago

NaughtyAttributes' progressBar is non-interactable. Once Unity serialized the default value into object, you can only change it in inspector, by script, or rename the vairible.

One way is to remove the ProgressBar, change the value in editor, then add it back. Or use a "[Button]" function to change the value.

I have a interactive version to save some time, and it can be used together with NaughtyAttributes

progress_bar