Navigation
API > API/Runtime > API/Runtime/MoviePlayer
This viewport is a simple interface for the loading to use to display the video textures.
| Name | FMovieViewport |
| Type | class |
| Header File | /Engine/Source/Runtime/MoviePlayer/Public/MoviePlayer.h |
| Include Path | #include "MoviePlayer.h" |
Syntax
class FMovieViewport :
public ISlateViewport ,
public TSharedFromThis< FMovieViewport >
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → FMovieViewport
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMovieViewport() |
MoviePlayer.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FMovieViewport() |
MoviePlayer.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| DefaultSize | FIntPoint | Size to use when we don't have a texture. | MoviePlayer.h | |
| SlateTexture | TWeakPtr< FSlateTexture2DRHIRef, ESPMode::ThreadSafe > | MoviePlayer.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void SetDefaultSize
(
FIntPoint InSize |
Sets the size to use when there is no texture. | MoviePlayer.h | |
void SetTexture
(
TWeakPtr< FSlateTexture2DRHIRef, ESPMode::ThreadSafe > InTexture |
MoviePlayer.h |
Overridden from ISlateViewport
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FIntPoint GetSize() |
ISlateViewport interface. | MoviePlayer.h | |
virtual FSlateShaderResource * GetViewportRenderTargetTexture() |
MoviePlayer.h | ||
virtual bool RequiresVsync() |
MoviePlayer.h |