Navigation
API > API/Runtime > API/Runtime/MediaAssets
| Name | UMediaComponent |
| Type | class |
| Header File | /Engine/Source/Runtime/MediaAssets/Public/MediaComponent.h |
| Include Path | #include "MediaComponent.h" |
Syntax
UCLASS (Category="Media", HideCategories=(Media, Activation), MinimalAPI)
class UMediaComponent : public UActorComponent
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UActorComponent → UMediaComponent
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UMediaComponent
(
const FObjectInitializer& ObjectInitializer |
MediaComponent.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| MediaPlayer | TObjectPtr< UMediaPlayer > | This component's media player | MediaComponent.h |
|
| MediaTexture | TObjectPtr< UMediaTexture > | This component's media texture | MediaComponent.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UMediaPlayer * GetMediaPlayer() |
Get the media player that this component owns | MediaComponent.h |
|
UMediaTexture * GetMediaTexture() |
Get the media texture that this component owns, bound to its media player. | MediaComponent.h |
|