Skip to main content
4mo ago

Passing my event data to the StateMachine to override listeners

I was using this in a script tag: https://unpkg.com/@rive-app/canvas@2.17.3 and got an error when calling the stateMachine.PointerMove() so then I figured, maybe I have to use the canvas-advanced to get the Pointer methods. I tried https://unpkg.com/@rive-app/canvas-advanced@2.17.3/rive.wasm but it gives an error about MIME type wasm. What CDN URL can I use for the canvas-advance in script tags? Or as an ES6 import? (knowing both would be nice) I do not want to use NPM.

Thanks - and will this then allow me to pass in my own pointer data to the stateMachine like they seem to in https://help.rive.app/game-runtimes/unity/listeners

I can easily handle StateMachine inputs, no problem, but need to control existing listeners for rive apps.