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

Dedicated user event API and editor UI #47

Merged
merged 2 commits into from
Jun 29, 2024
Merged

Dedicated user event API and editor UI #47

merged 2 commits into from
Jun 29, 2024

Conversation

mbrea-c
Copy link
Owner

@mbrea-c mbrea-c commented Jun 29, 2024

Currently, sending events into a graph from gameplay logic require manually adding an EventQueue input parameter through the animation graph player, and adding your event there. However, such a parameter would not get cleared every frame, so it would send the same events every frame until manually cleared.

This PR adds a send_event API to the animation graph player that enables sending a single event that will get cleared at the end of the frame. It also adds some cleaner UI for sending events from the editor (for testing purposes), which allows you to save a few event types so that you can send them with a single click.

@mbrea-c mbrea-c merged commit 921da82 into master Jun 29, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

1 participant