Skip to Content
defold-typescript libraries
defold (official)

defold/extension-onetrust

A work-in-progress native extension for the OneTrust SDK that upstream describes as not working. On Android it registers an onetrust Lua module whose only function, onetrust.init, is currently an empty stub; other platforms get a null extension with no module.

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

  • GitHub: defold/extension-onetrust — pinned to 142749e
    1. This repo publishes no releases or tags. Add a commit archive URL — for the pinned commit, https://github.com/defold/extension-onetrust/archive/142749e96b63a336839b45ac4b82536d84218806.zip — to game.project under [project] dependencies, then Fetch Libraries in the Defold editor.
    2. Guard the call with if onetrust then onetrust.init() end, as the example script does, since the module exists only on Android.