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

Method ExecuteOnMain

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

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)

Source from the content-addressed store, hash-verified

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}

Callers 1

MaterialBufferClass · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected