Skip to main content

xr.RetainPreInitInstance

Var

Unreal Engine Var console variable.

xrRetainPreInitInstance

Description

If true, OpenXR will retain any instance created during PreInit rather than destroying it. Destroying it is more correct because we are not yet certain to have chosen OpenXRHMD, and another HMD plugin could take over and try to create an instance of its own which would fail on a runtime that supports only one.

Usage

xr.RetainPreInitInstance [value]

Set via the console (~) or in DefaultEngine.ini / DefaultGame.ini.