adopt static method

LuauState adopt(
  1. int vmPointer,
  2. Factory riveFactory, {
  3. RenderTexture? renderTexture,
})

Adopt a ScriptingVM created by C++ requestVM. Replaces the C++ scripting context with one compatible with Dart (factory + console callback). On web, renderTexture provides the GL context handle for this VM.

Implementation

static LuauState adopt(
  int vmPointer,
  Factory riveFactory, {
  RenderTexture? renderTexture,
}) {
  return adoptLuauState(vmPointer, riveFactory, renderTexture: renderTexture);
}