Choose your operating system:
Windows
macOS
Linux
| UObjectBase
|
Module |
|
Header |
/Engine/Source/Runtime/MediaAssets/Public/MediaTexture.h |
Include |
#include "MediaTexture.h" |
class UMediaTexture : public UTexture
Implements a texture asset for rendering video tracks from UMediaPlayer assets.
Name | Description | ||
---|---|---|---|
|
TEnumAsByte< Te... |
AddressX |
The addressing mode to use for the X axis. |
|
TEnumAsByte< Te... |
AddressY |
The addressing mode to use for the Y axis. |
|
AutoClear |
Whether to clear the texture when no media is being played (default = enabled). |
|
|
ClearColor |
The color used to clear the texture if AutoClear is enabled (default = black). |
|
|
float |
CurrentAspectRatio |
Current aspect ratio |
|
TEnumAsByte< en... |
CurrentOrientation |
Current media orientation |
|
EnableGenMips |
Basic enablement for mip generation (default = false). |
|
|
TObjectPtr< UMe... |
MediaPlayer |
The media player asset associated with this texture. |
|
NewStyleOutput |
Enable new style output (default = false). |
|
|
NumMips |
The number of mips to use (default = 1). |
|
|
TEnumAsByte< en... |
OutputFormat |
Name | Description | |
---|---|---|
|
UMediaTexture ( |
Name | Description | ||
---|---|---|---|
|
CacheNextAvailableSampleTime ( |
Caches the next available sample time from the queue when last rendering was made |
|
|
float |
GetAspectRatio() |
Gets the current aspect ratio of the texture. |
|
GetAvailableSampleCount() |
Gets the number of samples that are available |
|
|
float |
GetCurrentAspectRatio() |
Get current aspect ratio of presented frame. |
|
MediaTexture... |
GetCurrentOrientation() |
Get current orientation of presented frame. |
|
GetHeight() |
Gets the current height of the texture. |
|
|
UMediaPlayer... |
GetMediaPlayer() |
Get the media player that provides the video samples. |
|
GetNextSampleTime() |
Gets the next sample Time. |
|
|
GetTextureNumMips() |
Gets the current numbe of mips of the texture. |
|
|
GetWidth() |
Gets the current width of the texture. |
|
|
SetDefaultMediaPlayer ( |
Set the texture's default media player property. |
|
|
SetMediaPlayer ( |
Set the media player that provides the video samples. |
|
|
SetRenderedExternalTextureGuid ( |
||
|
TickResource ( |
Tick the texture resource. |
|
|
UpdatePlayerAndQueue() |
Update the video sample queue, if necessary. |
|
|
UpdateSampleInfo ( |
Update sample info |
Name | Description | ||
---|---|---|---|
|
FTextureReso... |
CreateResource() |
Implemented by subclasses to create a new resource for the texture. |
|
GetExternalTextureGuid() |
Access the GUID which defines this texture's resources externally through FExternalTextureRegistry |
|
|
EMaterialVal... |
GetMaterialType() |
|
|
GetSurfaceArraySize() |
||
|
float |
GetSurfaceDepth() |
|
|
float |
GetSurfaceHeight() |
|
|
float |
GetSurfaceWidth() |
|
|
UpdateResource() |
Creates a new resource for the texture, and updates any cached references to the resource. |
Name | Description | ||
---|---|---|---|
|
BeginDestroy() |
Called before destroying the object. |
|
|
GetDesc() |
Return a one line description of an object for viewing in the thumbnail view of the generic browser |
|
|
GetResourceSizeEx ( |
Get the size of the object/resource for use in memory tools or to display to artists/LDs in the Editor This is the extended version which separates up the used memory into different memory regions (the actual definition of which may be platform specific). |
|
|
IsPostLoadThreadSafe() |
Called during async load to determine if PostLoad can be called on the loading thread. |
|
|
PostEditChangeProperty ( |
Called when a property on this object has been modified externally |
|
|
PostLoad() |
Do any object-specific cleanup required immediately after loading an object. |