Navigation
API > API/Runtime > API/Runtime/MediaAssets
Inheritance Hierarchy
- UTexture
- UMediaTexture
References
| Module | MediaAssets |
| Header | /Engine/Source/Runtime/MediaAssets/Public/MediaTexture.h |
| Include | #include "MediaTexture.h" |
Syntax
UCLASS (HideCategories=(Adjustments, Compositing, LevelOfDetail, ImportSettings, Object),
MinimalAPI)
class UMediaTexture : public UTexture
Remarks
Implements a texture asset for rendering video tracks from UMediaPlayer assets.
note: derives directly from UTexture, not from UTexture2D or UTexture2DDynamic maybe should have been UTexture2DDynamic?
Variables
| Type | Name | Description | |
|---|---|---|---|
| TEnumAsByte< TextureAddress > | AddressX | The addressing mode to use for the X axis. | |
| TEnumAsByte< TextureAddress > | AddressY | The addressing mode to use for the Y axis. | |
| bool | AutoClear | Whether to clear the texture when no media is being played (default = enabled). | |
| FLinearColor | ClearColor | The color used to clear the texture if AutoClear is enabled (default = black). | |
| PRAGMA_ENABLE_DEPRECATION_WARNINGS float | CurrentAspectRatio | Current aspect ratio | |
| TEnumAsByte< enum MediaTextureOrientation > | CurrentOrientation | Current media orientation | |
| bool | EnableGenMips | Basic enablement for mip generation (default = false). | |
| TObjectPtr< UMediaPlayer > | MediaPlayer | The media player asset associated with this texture. | |
| bool | NewStyleOutput | Enable new style output. | |
| uint8 | NumMips | The number of mips to use (default = 1). |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UMediaTexture
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | BeginDestroy () |
||
| void | CacheNextAvailableSampleTime
(
FTimespan InNextSampleTime |
Caches the next available sample time from the queue when last rendering was made | |
| uint32 | CalcTextureMemorySizeEnum
(
ETextureMipCount Enum |
||
| FTextureResource * | |||
| float | Gets the current aspect ratio of the texture. | ||
| int32 | Gets the number of samples that are available | ||
| float | Get current aspect ratio of presented frame. | ||
| MediaTextureOrientation | Get current orientation of presented frame. | ||
| FString | GetDesc () |
||
| FGuid | |||
| int32 | GetHeight () |
Gets the current height of the texture. | |
| EMaterialValueType | |||
| UMediaPlayer * | Get the media player that provides the video samples. | ||
| float | Get the texture's mip-map bias, clamped to a legal range. | ||
| FTimespan | Gets the next sample Time. | ||
| ERenderMode | Returns the ERenderMode of this media texture | ||
| void | GetResourceSizeEx
(
FResourceSizeEx& CumulativeResourceSize |
||
| uint32 | |||
| float | |||
| float | |||
| float | |||
| ETextureClass | |||
| int32 | Gets the current numbe of mips of the texture. | ||
| int32 | GetWidth () |
Gets the current width of the texture. | |
| bool | |||
| void | Renders this media texture. | ||
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
||
| void | |||
| void | PostLoad () |
||
| void | SetColorSpaceOverride
(
UE::Color::EColorSpace InColorspaceOverride |
Set an override for color space conversions | |
| void | SetDefaultMediaPlayer
(
UMediaPlayer* NewMediaPlayer |
Set the texture's default media player property. | |
| void | SetMediaPlayer
(
UMediaPlayer* NewMediaPlayer |
Set the media player that provides the video samples. | |
| void | SetMipMapBias
(
float InMipMapBias |
Set texture's mip-map bias, for use by the texture resource sampler. | |
| void | SetRenderedExternalTextureGuid
(
const FGuid& InNewGuid |
||
| void | SetRenderMode
(
ERenderMode InRenderMode |
Sets the ERenderMode of this media texture | |
| void | TickResource
(
FTimespan Timecode |
Tick the texture resource. | |
| void | Update the video sample queue, if necessary. | ||
| void | Creates a new resource for the texture, and updates any cached references to the resource. | ||
| void | UpdateSampleInfo
(
const TSharedPtr< IMediaTextureSample, ESPMode::ThreadSafe >& Sample |
Update sample info |
Enums
| Type | Name | Description | |
|---|---|---|---|
| ERenderMode | Possible render modes of this media texture. |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| PRAGMA_DISABLE_DEPRECATION_WARNINGS TEnumAsByte< enum MediaTextureOutputFormat > | OutputFormat_DEPRECATED | DEPRECATED 5.4 |