- Home /
Question by
MilitaryG · Dec 26, 2021 at 03:53 PM ·
c#screenvideotexture
VideoPlayer how to shrink the video.
how to shrink the video so it isn't through the whole screen? any work around will do.
void start(){
GameObject camera = GameObject.Find("Main Camera");
VideoPlayer videoPlayer = camera.AddComponent<VideoPlayer>();
videoPlayer.playOnAwake = false;
videoPlayer.renderMode = UnityEngine.Video.VideoRenderMode.CameraNearPlane;
videoPlayer.targetCameraAlpha = 0.5F;
videoPlayer.url = "/programming/Unity 3D/Net/Assets/Mirror/Examples/Forum/Scripts/tools/SaveLoadDir/Uplink.mp4";
videoPlayer.frame = 100;
videoPlayer.isLooping = true;
videoPlayer.loopPointReached += EndReached;
videoPlayer.Play();
}
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613050945im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Input.mousePosition not updating? 1 Answer
Changing Video Cam Texture Material With Buttons 0 Answers
Where is Screen.Resolutions stored? 2 Answers