UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FMediaTextureTracker Class Reference

#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 FMediaTextureTrackerGet ()
 

Protected Attributes

TMap< TWeakObjectPtr< UMediaTexture >, TArray< TWeakPtr< FMediaTextureTrackerObject, ESPMode::ThreadSafe > > > MapTextureToObject
 
TArray< TWeakObjectPtr< UMediaTexture > > MediaTextures
 

Detailed Description

Tracks which media textures are used by which objects.

Constructor & Destructor Documentation

◆ ~FMediaTextureTracker()

virtual FMediaTextureTracker::~FMediaTextureTracker ( )
inlinevirtual

Member Function Documentation

◆ Get()

FMediaTextureTracker & FMediaTextureTracker::Get ( )
static

Access engine from here.

Returns
Engine.

◆ GetObjects()

const TArray< TWeakPtr< FMediaTextureTrackerObject, ESPMode::ThreadSafe > > * FMediaTextureTracker::GetObjects ( TObjectPtr< UMediaTexture InTexture) const

Get which objects are usnig a specific media texture.

Parameters
InTextureMedia texture to check.
Returns
Nullptr if nothing found, or a pointer to an array of objects.

◆ GetTextures()

const TArray< TWeakObjectPtr< UMediaTexture > > & FMediaTextureTracker::GetTextures ( )
inline

Get a list of media textures we know about.

@ return List of textures.

◆ RegisterTexture()

void FMediaTextureTracker::RegisterTexture ( TSharedPtr< FMediaTextureTrackerObject, ESPMode::ThreadSafe > &  InInfo,
TObjectPtr< UMediaTexture InTexture 
)

Each object should call this for each media texture that the object has.

Parameters
InInfoObject that has the texture.
InTextureTexture to register.

◆ UnregisterTexture()

void FMediaTextureTracker::UnregisterTexture ( TSharedPtr< FMediaTextureTrackerObject, ESPMode::ThreadSafe > &  InInfo,
TObjectPtr< UMediaTexture InTexture 
)

Each object should call this for each media texture that the object has.

Parameters
InInfoObject that has the texture.
InTextureTexture to unregister.

Member Data Documentation

◆ MapTextureToObject

TMap<TWeakObjectPtr<UMediaTexture>, TArray<TWeakPtr<FMediaTextureTrackerObject, ESPMode::ThreadSafe> > > FMediaTextureTracker::MapTextureToObject
protected

Maps a media texture to an array of playback components.

◆ MediaTextures

TArray<TWeakObjectPtr<UMediaTexture> > FMediaTextureTracker::MediaTextures
protected

Array of media textures that we know about.


The documentation for this class was generated from the following files: