UnityPlugin-AVProVideo icon indicating copy to clipboard operation
UnityPlugin-AVProVideo copied to clipboard

[Enhancement] Get video bounds in DisplayUGUI with ScaleToFit

Open artoonie opened this issue 5 months ago • 0 comments

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?

artoonie avatar Jun 14 '25 01:06 artoonie