Skip to Content
defold-typescript libraries
defold (official)

defold/extension-simpledata

A native extension that adds a .simpledata component type, editable in the editor and built by a Bob plugin. Each component holds preset fields such as name, f32, i32, v3 and an array_f32 list. It also serves as an example of adding a custom resource and component type.

Lua API not typed — upstream ships no .script_api, so resolve skips it.

  • GitHub: defold/extension-simpledata — pinned to v1.2.0 (released while Defold 1.12.0 was current)
    1. Pick a release from defold/extension-simpledata releases and add its Source code (zip) URL (or a packaged .zip asset, if the library ships one) to game.project under [project] dependencies, then Fetch Libraries in the Defold editor.
    2. Add .simpledata components to game objects.
    3. Read single fields with go.get.
    4. Read the whole float array into a Lua table with simpledata.get_array_f32(url).

Engine APIs

Component fields are read through go (go.get), including indexed access to array_f32.

On this page