Custom loading bar

Announcements, support questions, and discussion for the Dialogue System.
hrohibil
Posts: 369
Joined: Thu Nov 04, 2021 12:50 pm

Re: Custom loading bar

Post by hrohibil »

In above post I only changed the color of the slider(fill)..
User avatar
Tony Li
Posts: 22154
Joined: Thu Jul 18, 2013 1:27 pm

Re: Custom loading bar

Post 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.
hrohibil
Posts: 369
Joined: Thu Nov 04, 2021 12:50 pm

Re: Custom loading bar

Post 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 :-)
User avatar
Tony Li
Posts: 22154
Joined: Thu Jul 18, 2013 1:27 pm

Re: Custom loading bar

Post 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.
Post Reply