Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Events not triggering callbacks #91

Closed
paweljarosz opened this issue Apr 20, 2024 · 1 comment
Closed

Events not triggering callbacks #91

paweljarosz opened this issue Apr 20, 2024 · 1 comment

Comments

@paweljarosz
Copy link

The events are not crashing the game anymore, but it seems like I can't make it to be triggering callback. Even in the repro project from the issue, there is no callback called on events.

 rive.play_state_machine(rive_url, "State Machine 1", {},
    function(self, message_id, message)
        pprint("Hit event", message_id, message)
    end)

But nothing in the Console:

image


Related (includes package with reproduction project):
#89


Defold: 1.8.0-beta (1c78e3985d0cb3b257a9968713982d4a5137fb27)
Rive: 0.8.1268
Defold Rive-extension: main

@britzl britzl closed this as completed in 63fc53b Apr 21, 2024
@britzl
Copy link
Contributor

britzl commented Apr 21, 2024

Fixed it. The problem was that events were only triggered on event properties. If an event didn't have properties no callback was triggered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants