[SOLVED] Swap texture of image element


#1

I am working on a Casino Table game. In that game we have a different bet amount like 1$, 5$, 10$, 25$, 50$, 100$.
Right now, I am creating the Amount Entity with Image Element Component as a hidden Entity.
We just show the Entity of Amount on a Mouse Click.
I want to create a Custom Entity which is loaded on Script Load.
Also i want to update that default Element Amount with other Textures.
Basically i want to update the Texture of Amount Entity Image Texture component. On the click on specifies entities.
Customize Texture image Element for single entity.
The game is like a Casino Table game with spinner.


[SOLVED] Material.update problem
#2

Please look at this project:

https://playcanvas.com/project/624998/overview/forum-change-texture


#3

Thanks a lot @will. This will give me a lot of Help.