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 added 30 commits November 28, 2025 16:14
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