Skip to content

Added support for event properties

Choose a tag to compare

@britzl britzl released this 07 Dec 09:50
· 1486 commits to main since this release
d098e0b

NEW: The event callback in rive.play_state_machine() will now also include all event properties in the callback message.

rive.play_state_machine("#model", "my_statemachine", nil, function(self, message_id, message)
	if message_id == hash("myevent") then
		print(message.mystring)
		print(message.mynumber)
		print(message.myboolean)
	end
end)