Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

heartofgamer_21

1
Posts
1
Topics
A member registered May 06, 2021

Recent community posts

HAVING AUDIO AND VIDEO IN THE SAME SCENE

By default, the scene is named SampleScene. We are going to add an audio and a video on the same scene and play them simultaneously.

Step 1: Find an audio file in your pc. Then go to Assets=>Import New Asset=>Select your desired audio file(song in this case)

Step 2:The audio will be imported in a few seconds. You may adjust sound setting in Import Settings.

Step 3:Now we will assign a empty game object for the audio source.

Step 4:Now just drag the audio to the new game object and rename it as required .You may change the setting present in the inspector. Here we have named it Game OBJ.

STEP 5:Now, we will create another empty game object for the video. And name it as GAME OBJ1.

STEP 6:Now we can follow the same steps that in 1 and get a video. You may change the setting present inspector for the video according to the requirement.

STEP 7: Now you can drag the video to the new object(GAME OBJ1 here) and add it as an component of the game object. You can adjust the video setting in the inspector.

STEP 8: You can press the play button to play video/audio of your choice.

MY INTEPRETATION:

We can perform all these functions without using coding so that these things cam be done much quicker compared C# script and it is easier to understand for non-technical users.

By SURYANSH SINGH