Implements a texture asset for rendering video tracks from UMediaPlayer assets.
更多...
#include <MediaTexture.h>
继承自 UTexture .
Implements a texture asset for rendering video tracks from UMediaPlayer assets.
◆ BeginDestroy()
| virtual void UMediaTexture::BeginDestroy |
( |
| ) |
|
|
overridevirtual |
Called before destroying the object.
This is called immediately upon deciding to destroy the object, to allow the object to begin an asynchronous cleanup process.
重载 UObject .
◆ CacheNextAvailableSampleTime()
| void UMediaTexture::CacheNextAvailableSampleTime |
( |
FTimespan |
InNextSampleTime | ) |
|
Caches the next available sample time from the queue when last rendering was made
- 参见
- GetNextSampleTime
◆ GetAspectRatio()
| float UMediaTexture::GetAspectRatio |
( |
| ) |
const |
Gets the current aspect ratio of the texture.
- 返回
- Texture aspect ratio.
- 参见
- GetHeight, GetWidth
◆ GetAvailableSampleCount()
| int32 UMediaTexture::GetAvailableSampleCount |
( |
| ) |
const |
Gets the number of samples that are available
- 返回
- The number of samples in the queue
◆ GetCurrentAspectRatio()
| float UMediaTexture::GetCurrentAspectRatio |
( |
| ) |
const |
Get current aspect ratio of presented frame.
- 返回
- Aspect ratio of current frame
◆ GetCurrentOrientation()
| MediaTextureOrientation UMediaTexture::GetCurrentOrientation |
( |
| ) |
const |
Get current orientation of presented frame.
- 返回
- Orientation of current frame
◆ GetHeight()
| int32 UMediaTexture::GetHeight |
( |
| ) |
const |
◆ GetMediaPlayer()
Get the media player that provides the video samples.
- 返回
- The texture's media player, or nullptr if not set.
- 参见
- SetMediaPlayer
◆ GetNextSampleTime()
| FTimespan UMediaTexture::GetNextSampleTime |
( |
| ) |
const |
◆ GetResourceSizeEx()
| virtual void UMediaTexture::GetResourceSizeEx |
( |
FResourceSizeEx & |
CumulativeResourceSize | ) |
|
|
overridevirtual |
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).
- 参数
-
| CumulativeResourceSize | Struct used to count up the cumulative size of the resource as to be displayed to artists/LDs in the Editor. |
重载 UObject .
◆ GetWidth()
| int32 UMediaTexture::GetWidth |
( |
| ) |
const |
◆ IsPostLoadThreadSafe()
| virtual bool UMediaTexture::IsPostLoadThreadSafe |
( |
| ) |
const |
|
overridevirtual |
Called during async load to determine if PostLoad can be called on the loading thread.
- 返回
- true if this object's PostLoad is thread safe
重载 UObject .
◆ PostLoad()
| virtual void UMediaTexture::PostLoad |
( |
| ) |
|
|
overridevirtual |
Do any object-specific cleanup required immediately after loading an object.
This is not called for newly-created objects, and by default will always execute on the game thread.
重载 UObject .
◆ SetMediaPlayer()
| void UMediaTexture::SetMediaPlayer |
( |
UMediaPlayer * |
NewMediaPlayer | ) |
|
Set the media player that provides the video samples.
- 参数
-
| NewMediaPlayer | The player to set. |
- 参见
- GetMediaPlayer
◆ TickResource()
| void UMediaTexture::TickResource |
( |
FTimespan |
Timecode | ) |
|
|
protected |
Tick the texture resource.
- 参数
-
| Timecode | The current timecode. |
◆ MediaPlayer
The media player asset associated with this texture.
This property is meant for design-time convenience. To change the associated media player at run-time, use the SetMediaPlayer method.
- 参见
- SetMediaPlayer
该类的文档由以下文件生成: