SKSettings

StereoKit initialization settings! Setup SK.settings with your data before calling SK.Initialize.

Instance Fields and Properties

   
DepthMode depthMode What kind of depth buffer should StereoKit use? A fast one, a detailed one, one that uses stencils? By default, StereoKit uses a balanced mix depending on platform, prioritizing speed but opening up when there’s headroom.
bool disableFlatscreenMRSim By default, StereoKit will simulate Mixed Reality input so developers can test MR spaces without being in a headeset. If You don’t want this, you can disable it with this setting!
DisplayMode displayPreference Which display type should we try to load? Default is DisplayMode.MixedReality.
int flatscreenHeight If using Runtime.Flatscreen, the pixel size of the window on the screen.
int flatscreenPosX If using Runtime.Flatscreen, the pixel position of the window on the screen.
int flatscreenPosY If using Runtime.Flatscreen, the pixel position of the window on the screen.
int flatscreenWidth If using Runtime.Flatscreen, the pixel size of the window on the screen.
bool noFlatscreenFallback If the preferred display fails, should we avoid falling back to flatscreen and just crash out? Default is false.

Static Fields and Properties

   
string appName Name of the application, this shows up an the top of the Win32 window, and is submitted to OpenXR. OpenXR caps this at 128 characters.
string assetsFolder Where to look for assets when loading files! Final path will look like ‘[assetsFolder]/[file]’, so a trailing ‘/’ is unnecessary.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!