Skip to content

2.41.0

Choose a tag to compare

@github-actions github-actions released this 26 Aug 19:33
· 215 commits to master since this release

This release is a minor version to deprecate properties and APIs with warnings when used, in preparation for a v3 release coming soon to this runtime.

New

  • stateMachine: string - Added to initialization params when instancing Rive. This will be the recommended property to play a state machine at runtime

Deprecation

Rive Parameters

  • Deprecates the following initialization params for instancing Rive. While they may continue to be supported, in a future major version, they may be removed, so we recommend migrating:
    • animations - Please use the new stateMachine param. Linear animations config + playback controls are deprecated
    • stateMachines - Please use the new stateMachine param. Do not pass an array of state machines, this has led to unexpected behavior at runtime and will not be supported in the next major version
    • automaticallyHandleEvents - Enabled Rive Events to be handled at runtime, such as the OpenUrlEvent. Rive events should be migrated to using data binding instead
    • onLoop - With linear animation config being deprecated, associated event listeners are as well
    • onStateChange - Use data binding (view model property observers) or state machine actions to handle state change-based events
  • Listening to RiveEvent events are deprecated. See migration to data binding triggers for more.

APIs

  • stateMachineInputs() - Please use data binding properties to drive the state machine at runtime
  • getTextRunValue()/setTextRunValue() - Please use the string view model property to alter text values at runtime
  • scrub() - Scrubbing linear animation timelines are deprecated

Commits

  • bug: check for animator before running animator.stop (#13775) 7be51ecfb7 40c222b
  • fix: Fix forward declare use issue for ore::context (#13737) 6debf52e7d d611b67
  • Revert "bug: check for animator before running animator.stop (#378)" a0fe814
  • perf(ore): lend scratch FBO/VAO to GL render passes instead of minting per pass (#13757) aa6d454839 6de63f3
  • feat(text input): add more text input properties (#13761) ed7059fc0b 8bf8d50
  • perf(runtime): shrink StateMachineInstance and DataBindContainer (#13697) d13f76fdc4 f418733
  • feat(scripting_workspace): rasc format, definitions, tests protocol and in-memory bake (#13701) daa3a2ec88 5aaa322
  • chore: Address layout consistency items (#13692) 1da7f74c5b 6a51373
  • fix(focus): stop a destroyed FocusData leaving a live node in the foc… (#13678) f663d597cb 65d42ea
  • feat(scripting): arena-epoch reaping of wasm module handles (#13698) 554ba71bef 367507c
  • fix: Honor a nested artboard's fill/hug inside grid/stack layouts (#13685) b6eba932c6 978d9e5
  • refactor(rasc): move rasc under one package so its downstream ci mirrors from mono (#13671) d8604cbf13 070991d
  • fix(unreal): raster order mode fix. (#13658) 56da77ec1c 48ad4e8
  • feat(scripting): wasm script execution lane (#13595) e6598b59db c91898d
  • fix: Layouts propagate size down to solo children (#13656) 2f12e4ae15 7d62219
  • fix(ore): let a pipeline take its vertex and fragment from different shader files (#13646) a156d37294 a1dd79a