Skip to main content

XRUtility

A static class in Alta.XRManagement, the global namespace.

Works out which XR mode to start in from the command line: /fly for no VR, -vrmode or /vrmode with valve or openvr for the Valve loader, and OpenXR otherwise.

Fields​

2 private and internal fields
MemberWhat it is
private const TownshipXRMode DefaultModeThe mode used when nothing on the command line says otherwise (OpenXR).
private static readonly Logger loggerNLog logger for this class.

Methods​

MemberWhat it is
static TownshipXRMode GetCommandXRMode()Reads the XR mode from the command line.
2 private and internal methods
MemberWhat it is
private static bool ContainsValveKeyword(string commandString)True when the argument is exactly valve or openvr.
private static TownshipXRMode GetCommandMode(IReadOnlyList<string> args, TownshipXRMode commandMode)Returns Valve when the vrmode argument names it; otherwise logs a warning and keeps the default.