Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 654 Bytes

WasmHelper.md

File metadata and controls

26 lines (17 loc) · 654 Bytes

WasmHelper

Defined in: WasmHelper.gd

The script contains helper constants and functions for using the addon.

Constants

const TYPE_I32 = 1
const TYPE_I64 = 2
const TYPE_F32 = 3
const TYPE_F64 = 4
const TYPE_VARIANT = 6

Static Functions

WasmModule load_wasm(String name, Variant data, Dictionary imports = {})

Loads a new Webassembly module. Returns null if it fails.

WasmModule load_wasm_file(String name, String path, Dictionary imports = {})

Loads a new Webassembly module from file. Path can be a Godot-specific path or global path. Returns null if it fails.