Navigation
API > API/Runtime > API/Runtime/MediaAssets
Inheritance Hierarchy
- UObject
- IMediaOptions
- UMediaSource
- UPlatformMediaSource
References
| Module | MediaAssets |
| Header | /Engine/Source/Runtime/MediaAssets/Public/PlatformMediaSource.h |
| Include | #include "PlatformMediaSource.h" |
Syntax
UCLASS (BlueprintType, MinimalAPI)
class UPlatformMediaSource : public UMediaSource
Remarks
A media source that selects other media sources based on target platform.
Use this asset to override media sources on a per-platform basis.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TMap< FString, TObjectPtr< UMediaSource > > | PlatformMediaSources | Media sources per platform. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| PRAGMA_DISABLE_DEPRECATION_WARNINGS void | PreSave
(
const ITargetPlatform* TargetPlatform |
||
| PRAGMA_ENABLE_DEPRECATION_WARNINGS void | PreSave
(
FObjectPreSaveContext ObjectSaveContext |
||
| void | Serialize
(
FArchive& Ar |
Overridden from UMediaSource
| Type | Name | Description | |
|---|---|---|---|
| FName | |||
| bool | GetMediaOption
(
const FName& Key, |
||
| double | GetMediaOption
(
const FName& Key, |
||
| int64 | GetMediaOption
(
const FName& Key, |
||
| FString | GetMediaOption
(
const FName& Key, |
||
| FText | GetMediaOption
(
const FName& Key, |
||
| FString | GetUrl () |
Get the media source's URL string (must be implemented in child classes). | |
| bool | HasMediaOption
(
const FName& Key |
||
| bool | Validate () |
Validate the media source settings (must be implemented in child classes). |