I used two methods in the code below.
The first type will display an error message in the second picture.
The second method does not display an error, but I need to add a cancel button.
The following is a screenshot of the error message.
I used two methods in the code below.
The first type will display an error message in the second picture.
The second method does not display an error, but I need to add a cancel button.
The following is a screenshot of the error message.
Uhm, you noticed that the error is actually located in the Odin inspector you’re using? We have no idea where and how you use tbe progress bar. The progress bar is meant for long processes which usually block the Unity editor until the task is finished. The progress bar allows you to terminate such a process earlier. The method you’ve showed doesn’t make too much sense to me. The information that the user wants to cancel the progress is not communicated out of the method. So the next time you call it the progressbar will be visible again.
It would be much more important to know where and how you use that method. Though the actual issue is in the third party inspector that you’re using. So if you have issues with that, you should reach out to the developer of that inspector. Though you really need to include more information as from the information given we can’t identify the issue.
Please do not post code as an image. It’s unnecessarily large, can’t be found through a search and we can’t reference a portion of your code in an answer when it’s in an image. If you have trouble with the site navigation you may want to have a look at the site navigation guide which explains how to format code properly.