Page 3 of 3

Re: Custom loading bar

Posted: Thu Dec 02, 2021 2:38 am
by hrohibil
In above post I only changed the color of the slider(fill)..

Re: Custom loading bar

Posted: Thu Dec 02, 2021 8:01 am
by Tony Li
Try changing line 12 to:

Code: Select all

if (slider != null && SaveSystem.currentAsyncOperation != null) slider.value = SaveSystem.currentAsyncOperation.progress;
This isn't necessary in my test project (since both slider and SaveSystem.currentAsyncOperation should be valid), but maybe something strange is going on in your project.

Feel free to send a reproduction project to tony (at) pixelcrushers.com if you're stuck.

Re: Custom loading bar

Posted: Thu Dec 02, 2021 8:13 am
by hrohibil
Ok that worked!!

Do you mind share why you think it worked?

Also it went from 0 to 90 % but i think like you said, in the build it would be more smooth right..

Thank you Toni....
You gave me my first Christmas gift :-)

Re: Custom loading bar

Posted: Thu Dec 02, 2021 8:51 am
by Tony Li
I'm glad that worked! :-)

I can't say exactly what is null or why without a reproduction project, but now that it does null error checking it shouldn't be an issue any more.