The procedure below will show how to convert an array of numbers to a text file that is saved in a specified location. For the sake of depth, I will use a stack of numbers, converted to an array and then saved.
The starter code below is for declaring a stack and saving some random values.
The command below converts the stack to an array, and then converts the array of objects to an array of string using Select(). This final list is stored as an array of string.
Finally, you can store this array of numbers in a text file, located on the Desktop:
The new VideoPlayer feature in Unity 5.6 allows you to import and play videos without converting them to another format and attaching them as textures to an object (although you can still attach the videos to objects). You can add a videoplayer by going to GameObject --> Video --> Video Player.
This adds a VideoPlayer component to an empty object, as shown to the left. You can attach a video clip, add audio sources, change playback speed, and even add mesh renderers to play videos on curves and meshes.
Using scripts to manipulate videos is easier with the introduction of the Video Player feature. First of all, you need to import the UnityEngine.Video library, and then declare the GameObject which has the video, and its Video Player component itself:
Next, in your Start() function, you need to assign the two variables you declared above to the GameObject and its Video Player component.
You can now easily manipulate the video by accessing the class and methods of videofile. Here are some examples of commands:
You can learn more about the Video Player and its functions and methods here
Two roads diverged in a wood, and I--