adopt static method
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);
}