Navigation
API > API/Runtime > API/Runtime/MediaAssets > API/Runtime/MediaAssets/UMediaSoundComponent
Description
Get the media player that provides the audio samples.
| Name | GetMediaPlayer |
| Type | function |
| Header File | /Engine/Source/Runtime/MediaAssets/Public/MediaSoundComponent.h |
| Include Path | #include "MediaSoundComponent.h" |
| Source | /Engine/Source/Runtime/MediaAssets/Private/Assets/MediaSoundComponent.cpp |
UFUNCTION (BlueprintCallable, Category="Media|MediaSoundComponent")
UMediaPlayer * GetMediaPlayer() const
The component's media player, or nullptr if not set.
See Also
- SetMediaPlayer