Little mistake here @Albertos. @Ivan_Stratiichuk should parse the Button Group entity, and select the progress bar entity. I don’t think this is a script naming issue, rather which entity to parse. Attributes can be quite confusing though .
I don’t think that was the issue. The issue was that it couldn’t find any entity called this.ProgressBar, meaning the progress bar entity hadn’t been parsed on to uiStats. The solution to this was parsing the progress bar entity on the uiStats script, which existed only in button group.
I think if you want to use your progressBar to switch between scenes you don’t need the buttons anymore. Just check the current number after the player has using it and switch to that scene.
Note: I foresee the problem that the scene will be switched when the player is still clicking to the right scene. So you need also a timer or something. Also I think progressBar is not the best name, because it is not a progress bar?
Yes, its not a progress bar, but I dont want to change the name not to make a mistakes…
I thought to build the next:
I will have a group of buttons, left arrow, middle slide button and right arrow. When user want to change a scene he need to chose those scene that he want by arrow, and after he did it to click on middle slide button, thats why I choose progress bar code as a base…!?