Warning
This extension is in alpha. That means:
- You may encounter some bugs
- It's untested on many platforms
- Most features are implemented, but the API may change a little
This extensions adds Rive support to Godot 4.
It makes use of the following third-party libraries:
- Load
.riv
files (artboards, animations, and state machines) - Listen for input events
- Change state machine properties in-editor and in code
- Robust API for runtime interaction
- Optimized for Godot
Important
These instructions are only tested on M1 MacOS. You may have to modify build/build.py
or build/SConstruct
for your system.
The following must be installed:
To build, run the following commands (from the root directory):
cd build
python build.py
To see the available options, run:
python build.py --help
Important
If you are not on M1 MacOS, you will need to build the extension yourself. Binaries are only provided for MacOS universal (debug and release). Eventually, binaries will be provided for other platforms.
- Copy
demo/bin/
,demo/icons/
, anddemo/rive.gdextension
to your project folder - Update the paths in
rive.gdextension
to match your project folder structure
- Load
.riv
files - Run and play Rive animations
- Raster image support
- Input events (hover, pressed, etc.)
- Alignment & size exported properties
- Multiple scenes/artboards
- Dynamic exported properties based on state machine
- API for interaction during runtime
- Add error handling
- Add signals for event listeners (hover, pressed, etc)
- Disable/enable event listeners (hover, pressed, etc) in API and editor
- Optimization
- Static editor preview
- Animated editor preview
- Add reset button
-
.riv
ResourceLoader (thumbnails) - Other platform support
- Any missing features
Help would be MUCH appreciated testing and/or building for the following platforms:
- Windows
- Android
- iOS
- Linux
- Web
Feel free to contribute bug fixes (see open issues), documentation, or features as well.