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.
()
| 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 |