Skip to main content
A function that triggers an action when invoked.
-- Define the script's data and inputs.
type MyNode = {
  onReset: Input<Trigger>,
}

-- Return a factory function that Rive uses to build the Node instance.
return function(): Node<MyNode>
  return {
    onReset = function() end,
  }
end