UHeadMountedDisplayFunctionLibrary::SetSpectatorScreenModeTexturePlusEyeLayout

Setup the layout for [ESpectatorScreenMode::TexturePlusEye](API\Runtime\HeadMountedDisplay\ESpectatorScreenMode).

Windows
MacOS
Linux

References

Module

HeadMountedDisplay

Header

/Engine/Source/Runtime/HeadMountedDisplay/Public/HeadMountedDisplayFunctionLibrary.h

Include

#include "HeadMountedDisplayFunctionLibrary.h"

Source

/Engine/Source/Runtime/HeadMountedDisplay/Private/HeadMountedDisplayFunctionLibrary.cpp

Syntax

static void SetSpectatorScreenModeTexturePlusEyeLayout
(
    FVector2D EyeRectMin,
    FVector2D EyeRectMax,
    FVector2D TextureRectMin,
    FVector2D TextureRectMax,
    bool bDrawEyeFirst,
    bool bClearBlack,
    bool bUseAlpha
)

Remarks

Setup the layout for ESpectatorScreenMode::TexturePlusEye.

Parameters

Parameter

Description

EyeRectMin

min of screen rectangle the eye will be drawn in. 0-1 normalized.

EyeRectMax

max of screen rectangle the eye will be drawn in. 0-1 normalized.

TextureRectMin

min of screen rectangle the texture will be drawn in. 0-1 normalized.

TextureRectMax

max of screen rectangle the texture will be drawn in. 0-1 normalized.

bDrawEyeFirst

if true the eye is drawn before the texture, if false the reverse.

bClearBlack

if true the render target will be drawn black before either rect is drawn.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss