Skip to main content
J
18d ago

Non-exported effect reporting and exported not reporting

So my game has an effect animation that plays when a character attacks another. I added hit animations for the characters but I was triggering them on the animation finish event. I changed this to a non-exported event and added another one for when the effect should hit.

When I exported my riv though, only the non-exported event name is reported.

This is the WebGL2 Advanced library.

hits.rev
303 KB

Here's my rev file from the latest version of the editor.

2 replies
J
16d ago

You don't actually need to export the name of events to be able to use them at runtime. They're all accessible in the runtime by default.

J
16d ago

Got it, thanks for the clarification! Was this always the case? I could have sworn I had to do this at one point to be able to see an event.

It may be helpful to update this page: https://rive.app/community/doc/exporting-for-runtime/docp8HLoCk3G

Currently it says "You may need to access certain objects at runtime, such as a text run to swap a string, or a nested artboard to access its inputs. In order to make these objects discoverable at runtime, you'll need to explicitly set it's name to be exported."

This doesn't provide a lot of clarification about what needs to be exported for runtime. Just "certain objects". From this sentence, is it just runs and nested artboards that need to be exported?