Continuing the discussion from Youtube Video as Texture:
So the goal is to have one object with multiple video texures activated by a click on other objects. The code from Wojtek works very well on different target objects but if I apply textures to just one of them it works only once for some reason.
So in the example below if I click on ObjectRug - RugMaterial is updated. If I then click on ObjectCurtain A - RugMaterial is updated again to a new video texture. I guess this kind of works by pure luck… But, if I click on ObjectRug back again, the video texture does not update… Anyone knows why it doesn’t work?
Thanks in advance!
setUpExternalVideoTexture('ObjectRug', 'RugMaterial', 'https://cdn0.shapespark.com/demo/ASSETS/textures/dots-video.mp4', false, true); setUpExternalVideoTexture('ObjectCurtain A', 'RugMaterial', 'https://cdn0.shapespark.com/demo/ASSETS/textures/lines-video.mp4', false, true);