reqoplease.blogg.se

Unity player apk
Unity player apk





unity player apk

We need to do a slight change here with the Texture and the material. It needs to be an absolute path so don’t add a link to Youtube or so Simply change the Source to URL and type in the path where your file is stored. That’s it! Save the scene and build the app. Attach an Audio Source to the Movie Screen via Add Componentĭrag and drop the Audio Source into the Audio Source of the Video Player The Video Player will need an audio source. I also checked on Loop because I want the video to continuously play On the Video Player make the following changes:ĭrag and drop your video to the Video Clip partĬhoose Play on Awake because you want the video to play as soon as the app starts On the MovieScreen’s Add Component, Add Video Player Tip: If you need to convert your own videos to different file formats, I found this site very useful Move this to your Assets folder- it’s easier that way I downloaded it from which offers samples for free. I reduced the scale to 0.3 on all Axes so that the moviescreen appears of the right size Rename it MovieScreen or something sensibleĬhange the values on the Main Camera so that the plane is in front of the camera and facing uprightĬhange the values on the MovieScreen to also have optimal viewing conditions. Right click and choose Plane under 3D Object to add it.

unity player apk

In my experience you can project the movie onto any 3D Object. To get started with, create a new Unity project.įield of View to 80 (in this case, the movie screen will be at this optimum distance) So the Video Player component is so cool that we don’t even need the MR Toolkit for this one. This post, we will learn how to play videos in the Hololens apps using the Video Player Unity component and dynamically (via code) In the last post, you learnt how to import the latest MR Toolkit in your project and how to use voice interactions It is included below under the play movies dynamically part.įirst of all a Happy New Year to all of you! Hope we do more awesome things with the Hololens this year 🙂 IMPORTANT UPDATE: Since the MovieTexture is deprecated, I have attached a VideoPlayer script which can be used instead of PlayMovie script.







Unity player apk