Hello!
We implemented progress bar using this example.
https://developer.playcanvas.com/en/tutorials/ui-elements-progress/
The corresponding error occurs in the console window whenever the progress bar is operated.
I don’t want to see this warning window, is there a solution?
Thank you! ![:upside_down_face: :upside_down_face:](https://forum.playcanvas.com/images/emoji/twitter/upside_down_face.png?v=12)
Hi @issactoast! It’s caused by line 34 of the ProgressBar script. Everything seems to work fine if you disable the line, so I suggest to do that. Maybe @yaustar can tell in which case the line is needed.
1 Like
I’ve fixed the project for that tutorial to not show that warning and also made PR to update the tutorial text: Fix rect self assignment waring in progress bar tutorial by yaustar · Pull Request #369 · playcanvas/developer.playcanvas.com · GitHub
Also note: That warning will not show in builds as it’s a debug only warning
2 Likes