Learn

Chapter 01 Blueprint Fundamentals

#004 Custom Events vs Functions

Custom Event or Function, which one should your Blueprint logic use?

  • 0:43 video
  • Written lesson
  • Beginner
Video lesson: Custom Events vs Functions, 0:43

Custom Events

A Custom Event starts a new chain inside the Event Graph. It can take inputs, but it never returns a value. And it can wait: Start Cooldown runs a Delay of two seconds, then sets Can Fire to true.

Functions

A Function has its own graph, with inputs and outputs. Get Enemy Distance takes an Enemy and returns the Distance through the Return Node. It runs from start to finish and returns immediately.

Why a Delay can’t go inside a Function

Delay is a latent node: it pauses a chain and resumes it later. Latent nodes need the Event Graph, which can pause and resume. A Function has to finish in one go, so it can’t hold a Delay.

Which one to use

  • Need a value back? Use a Function.
  • Need to wait across frames? Use a Custom Event.

Functions return. Events can wait.

Covered in this lesson

  • Custom Event
  • Function
  • Return Node
  • Delay
  • Event Graph

Newsletter

Development updates are coming to your inbox.

The newsletter opens soon. Until then, new lessons, tools and Beach Hunters progress appear first on our channels, linked below.