UMediaTexture::GetCurrentAspectRatio

Get current aspect ratio of presented frame.

Choose your operating system:

Windows

macOS

Linux

References

Module

MediaAssets

Header

/Engine/Source/Runtime/MediaAssets/Public/MediaTexture.h

Include

#include "MediaTexture.h"

Source

/Engine/Source/Runtime/MediaAssets/Private/Assets/MediaTexture.cpp

Syntax

float GetCurrentAspectRatio() const

Remarks

Get current aspect ratio of presented frame.

Returns

Aspect ratio of current frame