I’ve got it so when the player looks at a particular statue a scrollview comes up displaying some information to the player. In the project provided the cube on the left has the scrollview that was done in the editor which works fine, I’ve hooked it up with buttons that will scroll the window up and down by looking at them using the reticle in the centre of the screen.
The cube on the right I have attached a script that will create the same scrollview using the same parameters of each of the elements and been able to create it dynamically at runtime but the scrollbar does not appear and the buttons aren’t displaying correctly. Upon checking the console the dynamically created scrollview buttons are registering correctly(when moving the reticle in the centre of the screen over them), but there is no scrolling.
Forgive the messy button placement and formatting, wanted to make sure it would work first.
The scroll is not working and even the buttons dont appear to be displaying the correct color. What am I doing wrong?
Heres an example project of what I’m trying to do PlayCanvas | HTML5 Game Engine