Change video texture

Hi, im using Video Textures | Learn PlayCanvas this script to play some videos i get into playcanvas. But i need to play diferent vidios touchin a button. I try a lot of things but cant figure it out how to acomplish that. I make a lot o progres with controls and playing the videio, but its imposible make change on runtime… if there any one can give me some ideas or scripts, im not realy good coding but im learning fast.

Thanx a lot!

Hi @Dev_Blender ,

Here I’ve updated the example to allow referencing a list of videos and you can easily change the active one by pressing the space key:



Oh!! nice, that it! thanks so much

1 Like