You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

462 lines
23 KiB

3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
  1. <!DOCTYPE html>
  2. <!--[if IE]><![endif]-->
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <title>Class UnityGame
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class UnityGame
  11. ">
  12. <meta name="generator" content="docfx 2.59.4.0">
  13. <link rel="shortcut icon" href="../favicon.ico">
  14. <link rel="stylesheet" href="../styles/docfx.vendor.css">
  15. <link rel="stylesheet" href="../styles/docfx.css">
  16. <link rel="stylesheet" href="../styles/main.css">
  17. <link rel="stylesheet" href="../styles/fix.css">
  18. <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
  19. <meta property="docfx:navrel" content="../toc.html">
  20. <meta property="docfx:tocrel" content="toc.html">
  21. <meta property="docfx:rel" content="../">
  22. <meta property="docfx:newtab" content="true">
  23. </head> <body data-spy="scroll" data-target="#affix" data-offset="120">
  24. <div id="wrapper">
  25. <header>
  26. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  27. <div class="container">
  28. <div class="navbar-header">
  29. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  30. <span class="sr-only">Toggle navigation</span>
  31. <span class="icon-bar"></span>
  32. <span class="icon-bar"></span>
  33. <span class="icon-bar"></span>
  34. </button>
  35. <a class="navbar-brand" href="../index.html">
  36. <img id="logo" class="svg" src="../logo.svg" alt="">
  37. </a>
  38. </div>
  39. <div class="collapse navbar-collapse" id="navbar">
  40. <form class="navbar-form navbar-right" role="search" id="search">
  41. <div class="form-group">
  42. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  43. </div>
  44. </form>
  45. </div>
  46. </div>
  47. </nav>
  48. <div class="subnav navbar navbar-default">
  49. <div class="container hide-when-search" id="breadcrumb">
  50. <ul class="breadcrumb">
  51. <li></li>
  52. </ul>
  53. </div>
  54. </div>
  55. </header>
  56. <div class="container body-content">
  57. <div id="search-results">
  58. <div class="search-list">Search Results for <span></span></div>
  59. <div class="sr-items">
  60. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  61. </div>
  62. <ul id="pagination" data-first="First" data-prev="Previous" data-next="Next" data-last="Last"></ul>
  63. </div>
  64. </div>
  65. <div role="main" class="container body-content hide-when-search">
  66. <div class="sidenav hide-when-search">
  67. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  68. <div class="sidetoggle collapse" id="sidetoggle">
  69. <div id="sidetoc"></div>
  70. </div>
  71. </div>
  72. <div class="article row grid-right">
  73. <div class="col-md-10">
  74. <article class="content wrap" id="_content" data-uid="IPA.Utilities.UnityGame">
  75. <h1 id="IPA_Utilities_UnityGame" data-uid="IPA.Utilities.UnityGame" class="text-break">Class UnityGame
  76. </h1>
  77. <div class="markdown level0 summary"><p>Provides some basic utility methods and properties of Beat Saber</p>
  78. </div>
  79. <div class="markdown level0 conceptual"></div>
  80. <div class="inheritance">
  81. <h5>Inheritance</h5>
  82. <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">Object</a></div>
  83. <div class="level1"><span class="xref">UnityGame</span></div>
  84. </div>
  85. <div class="inheritedMembers">
  86. <h5>Inherited Members</h5>
  87. <div>
  88. <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.tostring#system-object-tostring">Object.ToString()</a>
  89. </div>
  90. <div>
  91. <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)">Object.Equals(Object)</a>
  92. </div>
  93. <div>
  94. <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)">Object.Equals(Object, Object)</a>
  95. </div>
  96. <div>
  97. <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.referenceequals#system-object-referenceequals(system-object-system-object)">Object.ReferenceEquals(Object, Object)</a>
  98. </div>
  99. <div>
  100. <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.gethashcode#system-object-gethashcode">Object.GetHashCode()</a>
  101. </div>
  102. <div>
  103. <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.gettype#system-object-gettype">Object.GetType()</a>
  104. </div>
  105. <div>
  106. <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone#system-object-memberwiseclone">Object.MemberwiseClone()</a>
  107. </div>
  108. </div>
  109. <h6><strong>Namespace</strong>: <a class="xref" href="IPA.Utilities.html">IPA.Utilities</a></h6>
  110. <h6><strong>Assembly</strong>: IPA.Loader.dll</h6>
  111. <h5 id="IPA_Utilities_UnityGame_syntax">Syntax</h5>
  112. <div class="codewrapper">
  113. <pre><code class="lang-csharp hljs">public static class UnityGame</code></pre>
  114. </div>
  115. <h3 id="properties">Properties
  116. </h3>
  117. <span class="small pull-right mobile-hide">
  118. <span class="divider">|</span>
  119. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_UnityGame_GameVersion.md&amp;value=---%0Auid%3A%20IPA.Utilities.UnityGame.GameVersion%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  120. </span>
  121. <span class="small pull-right mobile-hide">
  122. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/80222a6da147bae9b95433ef78d03c5dd581e465/IPA.Loader/Utilities/UnityGame.cs/#L28">View Source</a>
  123. </span>
  124. <a id="IPA_Utilities_UnityGame_GameVersion_" data-uid="IPA.Utilities.UnityGame.GameVersion*"></a>
  125. <h4 id="IPA_Utilities_UnityGame_GameVersion" data-uid="IPA.Utilities.UnityGame.GameVersion">GameVersion</h4>
  126. <div class="markdown level1 summary"><p>Provides the current game version.</p>
  127. </div>
  128. <div class="markdown level1 conceptual"></div>
  129. <h5 class="decalaration">Declaration</h5>
  130. <div class="codewrapper">
  131. <pre><code class="lang-csharp hljs">public static AlmostVersion GameVersion { get; }</code></pre>
  132. </div>
  133. <h5 class="propertyValue">Property Value</h5>
  134. <table class="table table-bordered table-striped table-condensed">
  135. <thead>
  136. <tr>
  137. <th>Type</th>
  138. <th>Description</th>
  139. </tr>
  140. </thead>
  141. <tbody>
  142. <tr>
  143. <td><a class="xref" href="IPA.Utilities.AlmostVersion.html">AlmostVersion</a></td>
  144. <td><p>the SemVer version of the game</p>
  145. </td>
  146. </tr>
  147. </tbody>
  148. </table>
  149. <span class="small pull-right mobile-hide">
  150. <span class="divider">|</span>
  151. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_UnityGame_InstallPath.md&amp;value=---%0Auid%3A%20IPA.Utilities.UnityGame.InstallPath%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  152. </span>
  153. <span class="small pull-right mobile-hide">
  154. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/80222a6da147bae9b95433ef78d03c5dd581e465/IPA.Loader/Utilities/UnityGame.cs/#L139">View Source</a>
  155. </span>
  156. <a id="IPA_Utilities_UnityGame_InstallPath_" data-uid="IPA.Utilities.UnityGame.InstallPath*"></a>
  157. <h4 id="IPA_Utilities_UnityGame_InstallPath" data-uid="IPA.Utilities.UnityGame.InstallPath">InstallPath</h4>
  158. <div class="markdown level1 summary"><p>Gets the path to the game&apos;s install directory.</p>
  159. </div>
  160. <div class="markdown level1 conceptual"></div>
  161. <h5 class="decalaration">Declaration</h5>
  162. <div class="codewrapper">
  163. <pre><code class="lang-csharp hljs">public static string InstallPath { get; }</code></pre>
  164. </div>
  165. <h5 class="propertyValue">Property Value</h5>
  166. <table class="table table-bordered table-striped table-condensed">
  167. <thead>
  168. <tr>
  169. <th>Type</th>
  170. <th>Description</th>
  171. </tr>
  172. </thead>
  173. <tbody>
  174. <tr>
  175. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">String</a></td>
  176. <td><p>the path of the game install directory</p>
  177. </td>
  178. </tr>
  179. </tbody>
  180. </table>
  181. <span class="small pull-right mobile-hide">
  182. <span class="divider">|</span>
  183. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_UnityGame_LibraryPath.md&amp;value=---%0Auid%3A%20IPA.Utilities.UnityGame.LibraryPath%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  184. </span>
  185. <span class="small pull-right mobile-hide">
  186. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/80222a6da147bae9b95433ef78d03c5dd581e465/IPA.Loader/Utilities/UnityGame.cs/#L153">View Source</a>
  187. </span>
  188. <a id="IPA_Utilities_UnityGame_LibraryPath_" data-uid="IPA.Utilities.UnityGame.LibraryPath*"></a>
  189. <h4 id="IPA_Utilities_UnityGame_LibraryPath" data-uid="IPA.Utilities.UnityGame.LibraryPath">LibraryPath</h4>
  190. <div class="markdown level1 summary"><p>The path to the <code>Libs</code> folder. Use only if necessary.</p>
  191. </div>
  192. <div class="markdown level1 conceptual"></div>
  193. <h5 class="decalaration">Declaration</h5>
  194. <div class="codewrapper">
  195. <pre><code class="lang-csharp hljs">public static string LibraryPath { get; }</code></pre>
  196. </div>
  197. <h5 class="propertyValue">Property Value</h5>
  198. <table class="table table-bordered table-striped table-condensed">
  199. <thead>
  200. <tr>
  201. <th>Type</th>
  202. <th>Description</th>
  203. </tr>
  204. </thead>
  205. <tbody>
  206. <tr>
  207. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">String</a></td>
  208. <td><p>the path to the library directory</p>
  209. </td>
  210. </tr>
  211. </tbody>
  212. </table>
  213. <span class="small pull-right mobile-hide">
  214. <span class="divider">|</span>
  215. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_UnityGame_NativeLibraryPath.md&amp;value=---%0Auid%3A%20IPA.Utilities.UnityGame.NativeLibraryPath%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  216. </span>
  217. <span class="small pull-right mobile-hide">
  218. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/80222a6da147bae9b95433ef78d03c5dd581e465/IPA.Loader/Utilities/UnityGame.cs/#L158">View Source</a>
  219. </span>
  220. <a id="IPA_Utilities_UnityGame_NativeLibraryPath_" data-uid="IPA.Utilities.UnityGame.NativeLibraryPath*"></a>
  221. <h4 id="IPA_Utilities_UnityGame_NativeLibraryPath" data-uid="IPA.Utilities.UnityGame.NativeLibraryPath">NativeLibraryPath</h4>
  222. <div class="markdown level1 summary"><p>The path to the <code>Libs\Native</code> folder. Use only if necessary.</p>
  223. </div>
  224. <div class="markdown level1 conceptual"></div>
  225. <h5 class="decalaration">Declaration</h5>
  226. <div class="codewrapper">
  227. <pre><code class="lang-csharp hljs">public static string NativeLibraryPath { get; }</code></pre>
  228. </div>
  229. <h5 class="propertyValue">Property Value</h5>
  230. <table class="table table-bordered table-striped table-condensed">
  231. <thead>
  232. <tr>
  233. <th>Type</th>
  234. <th>Description</th>
  235. </tr>
  236. </thead>
  237. <tbody>
  238. <tr>
  239. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">String</a></td>
  240. <td><p>the path to the native library directory</p>
  241. </td>
  242. </tr>
  243. </tbody>
  244. </table>
  245. <span class="small pull-right mobile-hide">
  246. <span class="divider">|</span>
  247. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_UnityGame_OnMainThread.md&amp;value=---%0Auid%3A%20IPA.Utilities.UnityGame.OnMainThread%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  248. </span>
  249. <span class="small pull-right mobile-hide">
  250. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/80222a6da147bae9b95433ef78d03c5dd581e465/IPA.Loader/Utilities/UnityGame.cs/#L99">View Source</a>
  251. </span>
  252. <a id="IPA_Utilities_UnityGame_OnMainThread_" data-uid="IPA.Utilities.UnityGame.OnMainThread*"></a>
  253. <h4 id="IPA_Utilities_UnityGame_OnMainThread" data-uid="IPA.Utilities.UnityGame.OnMainThread">OnMainThread</h4>
  254. <div class="markdown level1 summary"><p>Checks if the currently running code is running on the Unity main thread.</p>
  255. </div>
  256. <div class="markdown level1 conceptual"></div>
  257. <h5 class="decalaration">Declaration</h5>
  258. <div class="codewrapper">
  259. <pre><code class="lang-csharp hljs">public static bool OnMainThread { get; }</code></pre>
  260. </div>
  261. <h5 class="propertyValue">Property Value</h5>
  262. <table class="table table-bordered table-striped table-condensed">
  263. <thead>
  264. <tr>
  265. <th>Type</th>
  266. <th>Description</th>
  267. </tr>
  268. </thead>
  269. <tbody>
  270. <tr>
  271. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">Boolean</a></td>
  272. <td><p><span class="xref">true</span> if the curent thread is the Unity main thread, <span class="xref">false</span> otherwise</p>
  273. </td>
  274. </tr>
  275. </tbody>
  276. </table>
  277. <span class="small pull-right mobile-hide">
  278. <span class="divider">|</span>
  279. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_UnityGame_PluginsPath.md&amp;value=---%0Auid%3A%20IPA.Utilities.UnityGame.PluginsPath%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  280. </span>
  281. <span class="small pull-right mobile-hide">
  282. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/80222a6da147bae9b95433ef78d03c5dd581e465/IPA.Loader/Utilities/UnityGame.cs/#L163">View Source</a>
  283. </span>
  284. <a id="IPA_Utilities_UnityGame_PluginsPath_" data-uid="IPA.Utilities.UnityGame.PluginsPath*"></a>
  285. <h4 id="IPA_Utilities_UnityGame_PluginsPath" data-uid="IPA.Utilities.UnityGame.PluginsPath">PluginsPath</h4>
  286. <div class="markdown level1 summary"><p>The directory to load plugins from.</p>
  287. </div>
  288. <div class="markdown level1 conceptual"></div>
  289. <h5 class="decalaration">Declaration</h5>
  290. <div class="codewrapper">
  291. <pre><code class="lang-csharp hljs">public static string PluginsPath { get; }</code></pre>
  292. </div>
  293. <h5 class="propertyValue">Property Value</h5>
  294. <table class="table table-bordered table-striped table-condensed">
  295. <thead>
  296. <tr>
  297. <th>Type</th>
  298. <th>Description</th>
  299. </tr>
  300. </thead>
  301. <tbody>
  302. <tr>
  303. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">String</a></td>
  304. <td><p>the path to the plugin directory</p>
  305. </td>
  306. </tr>
  307. </tbody>
  308. </table>
  309. <span class="small pull-right mobile-hide">
  310. <span class="divider">|</span>
  311. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_UnityGame_ReleaseType.md&amp;value=---%0Auid%3A%20IPA.Utilities.UnityGame.ReleaseType%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  312. </span>
  313. <span class="small pull-right mobile-hide">
  314. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/80222a6da147bae9b95433ef78d03c5dd581e465/IPA.Loader/Utilities/UnityGame.cs/#L132">View Source</a>
  315. </span>
  316. <a id="IPA_Utilities_UnityGame_ReleaseType_" data-uid="IPA.Utilities.UnityGame.ReleaseType*"></a>
  317. <h4 id="IPA_Utilities_UnityGame_ReleaseType" data-uid="IPA.Utilities.UnityGame.ReleaseType">ReleaseType</h4>
  318. <div class="markdown level1 summary"><p>Gets the <a class="xref" href="IPA.Utilities.UnityGame.Release.html">UnityGame.Release</a> type of this installation of Beat Saber</p>
  319. </div>
  320. <div class="markdown level1 conceptual"></div>
  321. <h5 class="decalaration">Declaration</h5>
  322. <div class="codewrapper">
  323. <pre><code class="lang-csharp hljs">public static UnityGame.Release ReleaseType { get; }</code></pre>
  324. </div>
  325. <h5 class="propertyValue">Property Value</h5>
  326. <table class="table table-bordered table-striped table-condensed">
  327. <thead>
  328. <tr>
  329. <th>Type</th>
  330. <th>Description</th>
  331. </tr>
  332. </thead>
  333. <tbody>
  334. <tr>
  335. <td><a class="xref" href="IPA.Utilities.UnityGame.Release.html">UnityGame.Release</a></td>
  336. <td><p>the type of release this is</p>
  337. </td>
  338. </tr>
  339. </tbody>
  340. </table>
  341. <h5 id="IPA_Utilities_UnityGame_ReleaseType_remarks">Remarks</h5>
  342. <div class="markdown level1 remarks"><p>This only gives a</p>
  343. </div>
  344. <span class="small pull-right mobile-hide">
  345. <span class="divider">|</span>
  346. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_UnityGame_UserDataPath.md&amp;value=---%0Auid%3A%20IPA.Utilities.UnityGame.UserDataPath%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  347. </span>
  348. <span class="small pull-right mobile-hide">
  349. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/80222a6da147bae9b95433ef78d03c5dd581e465/IPA.Loader/Utilities/UnityGame.cs/#L168">View Source</a>
  350. </span>
  351. <a id="IPA_Utilities_UnityGame_UserDataPath_" data-uid="IPA.Utilities.UnityGame.UserDataPath*"></a>
  352. <h4 id="IPA_Utilities_UnityGame_UserDataPath" data-uid="IPA.Utilities.UnityGame.UserDataPath">UserDataPath</h4>
  353. <div class="markdown level1 summary"><p>The path to the <code>UserData</code> folder.</p>
  354. </div>
  355. <div class="markdown level1 conceptual"></div>
  356. <h5 class="decalaration">Declaration</h5>
  357. <div class="codewrapper">
  358. <pre><code class="lang-csharp hljs">public static string UserDataPath { get; }</code></pre>
  359. </div>
  360. <h5 class="propertyValue">Property Value</h5>
  361. <table class="table table-bordered table-striped table-condensed">
  362. <thead>
  363. <tr>
  364. <th>Type</th>
  365. <th>Description</th>
  366. </tr>
  367. </thead>
  368. <tbody>
  369. <tr>
  370. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">String</a></td>
  371. <td><p>the path to the user data directory</p>
  372. </td>
  373. </tr>
  374. </tbody>
  375. </table>
  376. <h3 id="methods">Methods
  377. </h3>
  378. <span class="small pull-right mobile-hide">
  379. <span class="divider">|</span>
  380. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_UnityGame_SwitchToMainThreadAsync.md&amp;value=---%0Auid%3A%20IPA.Utilities.UnityGame.SwitchToMainThreadAsync%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  381. </span>
  382. <span class="small pull-right mobile-hide">
  383. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/80222a6da147bae9b95433ef78d03c5dd581e465/IPA.Loader/Utilities/UnityGame.cs/#L105">View Source</a>
  384. </span>
  385. <a id="IPA_Utilities_UnityGame_SwitchToMainThreadAsync_" data-uid="IPA.Utilities.UnityGame.SwitchToMainThreadAsync*"></a>
  386. <h4 id="IPA_Utilities_UnityGame_SwitchToMainThreadAsync" data-uid="IPA.Utilities.UnityGame.SwitchToMainThreadAsync">SwitchToMainThreadAsync()</h4>
  387. <div class="markdown level1 summary"><p>Asynchronously switches the current execution context to the Unity main thread.</p>
  388. </div>
  389. <div class="markdown level1 conceptual"></div>
  390. <h5 class="decalaration">Declaration</h5>
  391. <div class="codewrapper">
  392. <pre><code class="lang-csharp hljs">public static SwitchToUnityMainThreadAwaitable SwitchToMainThreadAsync()</code></pre>
  393. </div>
  394. <h5 class="returns">Returns</h5>
  395. <table class="table table-bordered table-striped table-condensed">
  396. <thead>
  397. <tr>
  398. <th>Type</th>
  399. <th>Description</th>
  400. </tr>
  401. </thead>
  402. <tbody>
  403. <tr>
  404. <td><a class="xref" href="IPA.Utilities.SwitchToUnityMainThreadAwaitable.html">SwitchToUnityMainThreadAwaitable</a></td>
  405. <td><p>An awaitable which causes any following code to execute on the main thread.</p>
  406. </td>
  407. </tr>
  408. </tbody>
  409. </table>
  410. </article>
  411. </div>
  412. <div class="hidden-sm col-md-2" role="complementary">
  413. <div class="sideaffix">
  414. <div class="contribution">
  415. <ul class="nav">
  416. <li>
  417. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_UnityGame.md&amp;value=---%0Auid%3A%20IPA.Utilities.UnityGame%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
  418. </li>
  419. <li>
  420. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/80222a6da147bae9b95433ef78d03c5dd581e465/IPA.Loader/Utilities/UnityGame.cs/#L21" class="contribution-link">View Source</a>
  421. </li>
  422. </ul>
  423. </div>
  424. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  425. <h5>In This Article</h5>
  426. <div></div>
  427. </nav>
  428. </div>
  429. </div>
  430. </div>
  431. </div>
  432. <footer>
  433. <div class="grad-bottom"></div>
  434. <div class="footer">
  435. <div class="container">
  436. <span class="pull-right">
  437. <a href="#top">Back to top</a>
  438. </span>
  439. <span>Generated by <strong>DocFX</strong></span>
  440. </div>
  441. </div>
  442. </footer>
  443. </div>
  444. <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
  445. <script type="text/javascript" src="../styles/docfx.js"></script>
  446. <script type="text/javascript" src="../styles/main.js"></script>
  447. </body>
  448. </html>