Jun
8
2019

Set Quad Scale to Match VideoPlayer Aspect Ratio

Needed quick videoplayer quad mesh resizer, to match video size, so here’s a small editor helper script:
https://github.com/UnityCommunity/UnityLibrary/blob/master/Assets/Scripts/Editor/ContextMenu/GetVideoAspectRatioEditor.cs

It checks video width and height, and then scales transform Y axis to match aspect ratio.

Access the script form VideoPlayer Context menu (right click on VideoPlayer component title)

Leave a comment

Connect

Twitter View LinkedIn profile Youtube Youtube Join Discord Twitch Instagram

UnityLauncherPro

Get UnityLauncherPRO and work faster with Unity Projects!
*free unity hub alternative

@unitycoder_com

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.