Skip to content

Trigger property OnTriggered only fires once for bindable artboards placed in slots #152

@adham7711

Description

@adham7711

When a ViewModelInstanceTriggerProperty is subscribed to via OnTriggered on a bindable artboard placed in a slot of a parent RiveWidget, the callback only fires once. Subsequent user interactions with the same button do not trigger the callback again.

The same button artboard works correctly when used directly on a RiveWidget (not as a slotted bindable artboard) — triggers fire on every click as expected.

Steps to Reproduce

Create a parent RiveWidget with an artboard that has a ViewModel slot for a nested artboard
Create a bindable artboard (e.g. a button) with a trigger property (e.g. buttonClicked)
Place the bindable artboard into the parent widget's slot via SetViewModelInstance / artboard property
Subscribe to the trigger's OnTriggered event in C#
Click the button — callback fires ✅
Click the button again — callback does not fire ❌
Expected Behavior

OnTriggered should fire on every user interaction, regardless of whether the artboard is direct or slotted.

Actual Behavior

OnTriggered fires only once. Subsequent clicks are not detected.

Is there an additional step required to make trigger properties work correctly on bindable artboards placed in slots? Are we missing something in our setup, or is this a bug in how slotted artboard state machines are advanced?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions