Navigation
API > API/Plugins > API/Plugins/MediaPlate
Inheritance Hierarchy
- AActor
- AMediaPlate
References
| Module | MediaPlate |
| Header | /Engine/Plugins/Media/MediaPlate/Source/MediaPlate/Public/MediaPlate.h |
| Include | #include "MediaPlate.h" |
Syntax
UCLASS ()
class AMediaPlate : public AActor
Remarks
MediaPlate is an actor that can play and show media in the world.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TObjectPtr< UMediaPlateComponent > | MediaPlateComponent | ||
| TObjectPtr< UStaticMeshComponent > | StaticMeshComponent | Holds the mesh. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
AMediaPlate
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Call this after changing the current material to set it up for media plate. | ||
| void | ApplyMaterial
(
UMaterialInterface* InMaterial |
Setup the material for media plate use. Automatically called by ApplyCurrentMaterial. | |
| void | ApplyOverlayMaterial
(
UMaterialInterface* InOverlayMaterial |
Setup the overlay material for media plate use. Automatically called by ApplyCurrentMaterial. | |
| void | BeginDestroy () |
||
| UMaterialInterface * | Get the current static mesh material, at index 0. | ||
| UMaterialInterface * | Get the current static mesh overlay material, nullptr otherwise. | ||
| UMaterialInterface * | Get the last material assigned to the static mesh, at index 0. | ||
| void | |||
| void | |||
| void | SetMIDParameters
(
UMaterialInstanceDynamic* InMaterial |
Sets up parameters (like the texture) that we use in the material. | |
| void | Call this to change the static mesh to use the default media plate material and reset the overlay material. |
Constants
| Name | Description |
|---|---|
| MediaPlateComponentName | Name for our media plate component. |
| MediaTextureName | Name for the media texture parameter in the material. |