Navigation
API > API/Runtime > API/Runtime/MediaAssets
References
| Module | MediaAssets |
| Header | /Engine/Source/Runtime/MediaAssets/Public/MediaTextureTracker.h |
| Include | #include "MediaTextureTracker.h" |
Syntax
class FMediaTextureTracker
Remarks
Tracks which media textures are used by which objects.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TMap< TWeakObjectPtr< UMediaTexture >, TArray< TWeakPtr< FMediaTextureTrackerObject, ESPMode::Thread... | MapTextureToObject | Maps a media texture to an array of playback components. | |
| TArray< TWeakObjectPtr< UMediaTexture > > | MediaTextures | Array of media textures that we know about. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| FMediaTextureTracker & | Get () |
Access engine from here. | |
| const TArray< TWeakPtr< FMediaTextureTrackerObject, ESPMode::ThreadSafe > > * | GetObjects
(
TObjectPtr< UMediaTexture > InTexture |
Get which objects are usnig a specific media texture. | |
| const TArray< TWeakObjectPtr< UMediaTexture > > & | GetTextures () |
Get a list of media textures we know about.@ return List of textures. | |
| void | RegisterTexture
(
TSharedPtr< FMediaTextureTrackerObject, ESPMode::ThreadSafe >& InInfo, |
Each object should call this for each media texture that the object has. | |
| void | UnregisterTexture
(
TSharedPtr< FMediaTextureTrackerObject, ESPMode::ThreadSafe >& InInfo, |
Each object should call this for each media texture that the object has. |