Navigation
API > API/Plugins > API/Plugins/MediaPlate
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- AActor
- AMediaPlate
References
| Module | MediaPlate |
| Header | /Engine/Plugins/Media/MediaPlate/Source/MediaPlate/Public/MediaPlate.h |
| Include | #include "MediaPlate.h" |
Syntax
UCLASS&40;&41;
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 |
||
| UMaterialInterface * | Get the current static mesh material, at index 0. | ||
| UMaterialInterface * | Get the last material assigned to the static mesh, at index 0. | ||
| 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. |
Overridden from AActor
| Type | Name | Description | |
|---|---|---|---|
| void | Called when an actor is done spawning into the world (from UWorld::SpawnActor), both in the editor and during gameplay For actors with a root component, the location and rotation will have already been set. | ||
| void | Called after all the components in the Components array are registered, called both in editor and during gameplay. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | BeginDestroy () |
Called before destroying the object. |
Constants
| Name | Description |
|---|---|
| MediaPlateComponentName | Name for our media plate component. |
| MediaTextureName | Name for the media texture parameter in the material. |