This will queue up some code to be run on StereoKit's main thread! Immediately after StereoKit's Step, all callbacks registered here will execute, and then removed from the list. Some code to run! This Action will persist in a list until after Step, at which point it is removed and dropped.
(Action action)
| 349 | /// a list until after Step, at which point it is removed and dropped. |
| 350 | /// </param> |
| 351 | public static void ExecuteOnMain(Action action) => _mainThreadInvoke.Enqueue(action); |
| 352 | } |
| 353 | } |