MCPcopy Create free account
hub / github.com/StereoKit/StereoKit / PreLoadLibrary

Method PreLoadLibrary

StereoKit/SK.cs:115–122  ·  view source on GitHub ↗

If you need to call StereoKit code before calling SK.Initialize, you may need to explicitly load the library first. This can be useful for setting up a few things, but should probably be a pretty rare case.

()

Source from the content-addressed store, hash-verified

113 /// This can be useful for setting up a few things, but should
114 /// probably be a pretty rare case.</summary>
115 public static void PreLoadLibrary()
116 {
117 if (!NativeLib.Load())
118 {
119 global::System.Diagnostics.Debug.WriteLine("[SK error] Failed to load StereoKitC!");
120 Console.WriteLine("[SK error] Failed to load StereoKitC!");
121 }
122 }
123
124 /// <summary>Android only. This is for telling StereoKit about the
125 /// active Android window surface. In particular, Xamarin's

Callers 3

MainMethod · 0.80
MainMethod · 0.80
MainMethod · 0.80

Calls 1

LoadMethod · 0.45

Tested by

no test coverage detected