Skip to content

Conversation

@JCash
Copy link
Contributor

@JCash JCash commented Dec 15, 2025

⚠️ Breaking Change!!! ⚠️

This is a complete overhaul of the Lua bindings. See the rive.script_api file, or use the editor code completions to read more.

  • Docs are generated (as there are no docs to read from)
  • rive.* functions work on the Defold components, to get or set e.g. the default file, artboard, statemachine, and viewmodel
  • rive.cmd.* functions are a 1:1 mapping to the rive api in command_queue.hpp.
  • Can register global listener callbacks for the different handle types, and also properties
  • The api is asynchronous, and as such there are no "getters". Use the listeners

Removed or disabled functionalities, related to the support of the command queue api:

  • There is no way to attach a game object to a Rive bone in e.g. a character
  • Playing individual animations is not supported anymore.
    • No events are received from animation finished or animation looping
  • Each rive file needs to have at least one state machine

FIxes #198

JCash and others added 30 commits December 15, 2025 14:34
…hub.com:defold/extension-rive into update-3b5d9785f579e8055ec869382caceee19958c3ed
…aceee19958c3ed

Update to rive runtime 3b5d9785f579e8055ec869382caceee19958c3ed
Update wasm_pthread-web libraries 3b5d9785
# Conflicts:
#	defold-rive/lib/wasm_pthread-web/librive.a
#	defold-rive/lib/wasm_pthread-web/librive_harfbuzz.a
#	defold-rive/lib/wasm_pthread-web/librive_pls_renderer.a
#	defold-rive/lib/wasm_pthread-web/librive_renderer_wagyu.a
…2c11d599c00ae3

Update to rive runtime 3a5b5058aca009b823154ed7f92c11d599c00ae3
# Conflicts:
#	.gitignore
#	README.md
#	defold-rive/plugins/lib/arm64-osx/libRiveExt.dylib
#	defold-rive/plugins/lib/x86_64-osx/libRiveExt.dylib
#	defold-rive/plugins/lib/x86_64-win32/libRiveExt.dll
#	defold-rive/pluginsrc/rive_renderer_null.cpp
#	defold-rive/src/comp_rive.cpp
#	defold-rive/src/comp_rive_databinding.cpp
#	defold-rive/src/script_rive_databinding.cpp
#	utils/buildscripts/build_android.sh
#	utils/buildscripts/build_darwin.sh
#	utils/buildscripts/build_emscripten.sh
#	utils/buildscripts/build_linux.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Data Bindings: add support for Lists, Images, and Artboards

2 participants