menu_bookDocumentation
ActionGraph Component Actions - s&box Documentation
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.
- Add ActionGraph component to a GameObject
- Open the graph editor
- Create nodes that respond to events
- 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:
- Add ActionGraph to door
- Add "On Trigger Enter" event node
- Connect to "Animate" action node
- Set animation to "open"
Next Steps
- Getting Started — Learn the basics
- Variables — Store data in graphs
- Examples — Common patterns
Was this helpful?