How to unmuted the video in video texture when person is near by
Hello can you share a repro? This is fairly unclear so far
we have room where is there mesh which running video using video texture, by default the scene loads the video is running and sound of the video is muted. what i want is i need to unmuted the video when camera is near by. when camera leaves then audio of the video should be muted.
So you can use intersection tests to detect if the camera is near:
this intersection may not work for me, these meshes are in air, my camera is ground, is there a way to raise the event when camera reaches approx. near mesh not exactly the bounds
you have a way of doing that by checking the camera position and distance to objects on each frame
You can also define a collider around the camera with the size you expect it to be, which will technically work the same - it will check collisions on each frame.
There is always a simple solution, and it very much dependent on your use case. And since this can be a serious CPU hog, you should optimize the calls, again - according to your specific use case.