UGoogleVRHMDFunctionLibrary::SetGVRHMDRenderTargetScale

Set the RenderTarget size with a scale factor.

Windows
MacOS
Linux

References

Module

GoogleVRHMD

Header

/Engine/Plugins/Runtime/GoogleVR/GoogleVRHMD/Source/GoogleVRHMD/Classes/GoogleVRHMDFunctionLibrary.h

Include

#include "GoogleVRHMDFunctionLibrary.h"

Source

/Engine/Plugins/Runtime/GoogleVR/GoogleVRHMD/Source/GoogleVRHMD/Private/GoogleVRHMDFunctionLibrary.cpp

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="GoogleVRHMD", Meta=(Keywords="Cardboard AVR GVR"))
static bool SetGVRHMDRenderTargetScale
(
    float ScaleFactor,
    FIntPoint & OutRenderTargetSize
)

Remarks

Set the RenderTarget size with a scale factor. The scale factor will be multiplied by the maximal effective render target size based on the window size and the viewer.

Returns

true if the render target size changed.

Parameters

Parameter

Description

ScaleFactor

A float number that is within [0.1, 1.0].

OutRenderTargetSize

The actual render target size it is set to.

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