![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <MediaTextureTracker.h>
Public Member Functions | |
| virtual | ~FMediaTextureTracker () |
| MEDIAASSETS_API void | RegisterTexture (TSharedPtr< FMediaTextureTrackerObject, ESPMode::ThreadSafe > &InInfo, TObjectPtr< UMediaTexture > InTexture) |
| MEDIAASSETS_API void | UnregisterTexture (TSharedPtr< FMediaTextureTrackerObject, ESPMode::ThreadSafe > &InInfo, TObjectPtr< UMediaTexture > InTexture) |
| MEDIAASSETS_API const TArray< TWeakPtr< FMediaTextureTrackerObject, ESPMode::ThreadSafe > > * | GetObjects (TObjectPtr< UMediaTexture > InTexture) const |
| const TArray< TWeakObjectPtr< UMediaTexture > > & | GetTextures () |
Static Public Member Functions | |
| static MEDIAASSETS_API FMediaTextureTracker & | Get () |
Protected Attributes | |
| TMap< TWeakObjectPtr< UMediaTexture >, TArray< TWeakPtr< FMediaTextureTrackerObject, ESPMode::ThreadSafe > > > | MapTextureToObject |
| TArray< TWeakObjectPtr< UMediaTexture > > | MediaTextures |
Tracks which media textures are used by which objects.
|
inlinevirtual |
|
static |
Access engine from here.
| const TArray< TWeakPtr< FMediaTextureTrackerObject, ESPMode::ThreadSafe > > * FMediaTextureTracker::GetObjects | ( | TObjectPtr< UMediaTexture > | InTexture | ) | const |
Get which objects are usnig a specific media texture.
| InTexture | Media texture to check. |
|
inline |
Get a list of media textures we know about.
@ return List of textures.
| void FMediaTextureTracker::RegisterTexture | ( | TSharedPtr< FMediaTextureTrackerObject, ESPMode::ThreadSafe > & | InInfo, |
| TObjectPtr< UMediaTexture > | InTexture | ||
| ) |
Each object should call this for each media texture that the object has.
| InInfo | Object that has the texture. |
| InTexture | Texture to register. |
| void FMediaTextureTracker::UnregisterTexture | ( | TSharedPtr< FMediaTextureTrackerObject, ESPMode::ThreadSafe > & | InInfo, |
| TObjectPtr< UMediaTexture > | InTexture | ||
| ) |
Each object should call this for each media texture that the object has.
| InInfo | Object that has the texture. |
| InTexture | Texture to unregister. |
|
protected |
Maps a media texture to an array of playback components.
|
protected |
Array of media textures that we know about.