How can i change the model texture from low resolution to high in a button

how can I change the model texture from low resolution to high in a button?


like this image has in the bottom to change the texture from HD to low

Hi @Sameer_Khatri and welcome,

On adding UI buttons check this tutorial:
https://developer.playcanvas.com/en/tutorials/ui-elements-buttons/

From there you can extend the script to find and replace the material diffuse, and any other, texture maps. Here is an example project on that:

https://developer.playcanvas.com/en/tutorials/changing-textures-at-runtime