UnityPlugin-AVProVideo
UnityPlugin-AVProVideo copied to clipboard
[Enhancement] Get video bounds in DisplayUGUI with ScaleToFit
Which platform is your feature request for?
No response
Description
I want to know the corner of the video bounds, but I don't see any API that lets me get that location.
If I add the following to DisplayUGUI.cs:
public Vector4 GetDrawingDimensions()
{
Rect uvRect = _uvRect;
return GetDrawingDimensions(_scaleMode, ref uvRect);
}
it gives me exactly what I want.
Can a public function like this be added? Or perhaps there is an existing method I have missed?