Trying to get a simple instance of a YouTube video on a wall in my scene

Hello! I’m very new to babylon so please forgive me if this is too simple of a question, but I haven’t been able to find an answer through researching online.

I’ve created a room and applied gravity and an ellipsis to walk around in the standard “FPS” format. I’ve also created three boxes in this room. I was hoping to attach a YouTube video to one of the boxes. It doesn’t even have to be “attached” - I’d settle for creating an instance of the YouTube video then adjusting the positioning to appear to be attached.

However, I haven’t been able to figure out any code to create an instance of a YouTube video. I’ve seen people link this demo: https://playground.babylonjs.com/#AGY66J#6 but I can’t seem to import the code into my project and make it work.

Any input at all would be greatly appreciated. Thank you in advance!

Does this help?

3 Likes

Awsome!!! :open_mouth:

Thank you so much for your response! As a total newbie I’m having trouble importing this into my world: https://playground.babylonjs.com/#S7KDXS#6

I haven’t played yet with the asset manager / loader. Would that be necessary to put a youtube video on that middle block?

1 Like