Skip to main content
A Rive file decoded with context:decodeFile. Only assets embedded in the file load, and its scripts run only if Rive signed them.

Fields

artboardNames

The names of the file’s artboards, in file order.

Methods

bindableArtboard

The named artboard, or the file’s default artboard when name is nil; nil when there is no such artboard.

artboard

A new instance of the named artboard, or of the default one when name is nil, for the script to own, advance, draw and forward input to; nil when there is no such artboard. Its default state machine runs on new instances of the artboard’s view model (data) and of the file’s global view models, never the script’s own. It plays as part of the script’s content from its first frame, with no Rive splash screen of its own. It keeps the file loaded.