Welcome to ChilloutVR!
I'm Shin, also known as Shinter!
I love creating tutorials for people to learn about Unity and Blender. and I believe ChilloutVR needs more content for players to enjoy in public lobbies!
This guide is for individuals who create Worlds for ChilloutVR and want to create worlds with Video Players.
Last Updated: 25/12/2021
To get started with Video Players, Alpha Blend Interactive has already included a prefab with the CCK 3.0.
Search for "CVRVideoPlayerCinemaScreen"
and place this prefab into the Scene.
Right click the prefab in the Hierarchy and Unpack Prefab Completely (to prevent editing this prefab example)
Make sure to remove unused/unwanted scripts, currently there is a script that is included with the prefab that is unused and will be removed in a later CCK update.
Make sure you have a Render Texture generated if you don't have one set in Projection Texture, you can do this by pressing Create Sample Render Texture
Create a Empty Game Object, this will serve as the built in UI you can input links to.
Note for this example, I'll leave everything to it's default name, you can name this anything you want.
When you have successfully created an Empty Game Object, you can now input this as the UI Location.
Go to "CVRVideoPlayerCinemaScreen" in the Hierarchy, and in the Inspector tab on the right side scroll down until you see "Default UI Position" and change it to the Empty Game Object you made, It is named "GameObject" for me.
Once you have done that, you can now proceed to move the Empty Game Object to where you want the UI.
In this case, I would like it next to it.
At the time of writing, do not include an audio source but later in the future you would have to add one.
I will be editing this post as things get changed.
You should have a functional Video Player in your world by now, You can upload a world with this and it should work, If you want to include some extra things like a Playlist or a function, I included more information below.
More Advanced Settings for the Video Player
Started Playback () is when the Video Starts, it will execute functions that is in the list.
Finished Playback () is when the Video Ends, it will execute functions that is in the list.
Paused Playback () is when the Video is Paused, it will execute functions that is in the list.
Set Url () is when someone pastes a URL link and enters it, it will execute functions that is in the list.
One example of what you could do is:
When the Video starts, you can turn off lighting on the world (just an example)
You can also disable Network Sync if you want to have a video player that does not sync with other players.
(But this is also an opt-in thing that is in every video player if you have it on by default)
Frequently Asked Questions (FAQ)
Q1) My video player looks Grey!
A1) You're looking at the wrong game object to be setting a video, the Game Object you make for the UI is where you can change the video! The following picture below explains what I mean.
Q2) I have a weird/unused script in the prefab, or my upload is failing
A2) Please remove any unwanted and unused scripts to prevent issues with the video player script or uploading, and check for compiler errors.
Q3) I don't even see the video at all, but I see other worlds with video players no problem!
A3) Please check if you have a projection texture on your CVR Video Player script, if not "Create Sample Render Texture"
If this guide helped you please drop a like below 😄👍️ , or if you had trouble following this tutorial, You may DM me on Discord at Shinter#6986 or reply to this topic.