menu_bookDocumentation

ActionGraph Component Actions - s&box Documentation

calendar_today May 5, 2026 schedule ~1 min read person patrickjr verified 50

ActionGraph Component Actions

Add ActionGraph behavior directly to GameObjects using the ActionGraph component.

Component Actions

The ActionGraph component lets you attach visual scripts to GameObjects without writing C# code.

  1. Add ActionGraph component to a GameObject
  2. Open the graph editor
  3. Create nodes that respond to events
  4. Connect actions to perform

Built-in Events

Common events you can respond to:

  • On Start — When scene loads
  • On Update — Every frame
  • On Enabled — When GameObject becomes active
  • On Disabled — When GameObject deactivated
  • On Trigger Enter — Something entered trigger
  • On Collision — Physics collision occurred

Example

Create a door that opens when player approaches:

  1. Add ActionGraph to door
  2. Add "On Trigger Enter" event node
  3. Connect to "Animate" action node
  4. Set animation to "open"

Next Steps

ActionGraph makes visual scripting accessible without code.
Was this helpful?