Using slider to adjust size

Hi,
Is there a way to implement a slider using html, into PlayCanvas. And when you change the value it can change the size of a box for example.
If anyone knows how to do so could you send me a quick trial project or the code because that would help massively.

Thanks.

I don’t think there is an exact same code example. However, you can follow the way this project was implemented to affect your entity from the HTML UI, which is what you are after.
And this project shows how you can change the scale of an entity. You don’t need to use the curve in this case, but instead simply use the value you set in the UI directly.

1 Like

There’s also this project that has an HTML slider to move the camera along the path https://developer.playcanvas.com/en/tutorials/camera-following-a-path/

2 Likes

Thanks @yaustar, we’re taking a look into this.