RedNodeEditor
  • RedNodeEditor
  • Interface
    • Node list
    • Graph editor
  • Usage
    • Base nodes
    • Variables
    • Custom events
    • If statement
  • Building and using mods
    • Exporting and loading a mod
Powered by GitBook
On this page
  • Using custom events
  • UI custom events
  1. Usage

Custom events

PreviousVariablesNextIf statement

Last updated 1 year ago

Custom events are special nodes which can alter the flow, allowing for a cleaner and more readable graph. They are also used to execute actions based on inputs deriving from an user interface.

Using custom events

To create a custom event, add it as an usual node and give it an unique EventName (which will be id the caller will need to use to call it). To call the custom event, add a CallCustomEvent node and use the same EventName as the CustomEvent node.

  • Custom events can't have the same EventName. Names must be unique. Failing in so results in a building error.

  • EventName inputs are case sensitive. Always check if the two names correspond or use copy and paste to minimize the chance of typos. Event callers without a corresponding EventName will result in a building error.

UI custom events

Custom events are also used to receive inputs from user interface elements and execute an action with them. They can either receive a boolean or single (float) value.

UI nodes passing a boolean argument are:

  • AddCheckbox

UI nodes passing a float argument are:

  • AddSlider

checkbox ui node passing a boolean value to a custom event
slider ui node passing a single (float) value to a custom event
Page cover image