---
title: "run(_:)"
framework: scenekit
role: symbol
role_heading: Type Method
path: "scenekit/scnaction/run(_:)"
---

# run(_:)

Creates an action that executes a block.

## Declaration

```swift
class func run(_ block: @escaping @Sendable (SCNNode) -> Void) -> SCNAction
```

## Parameters

- `block`: The block to run. The block takes a single parameter:

## Return Value

Return Value A new action object.

## Discussion

Discussion When the action executes, SceneKit calls the block. This action takes place instantaneously. This action is not reversible; the reverse action executes the same block.

## See Also

### Creating Custom Actions

- [run(_:queue:)](scenekit/scnaction/run(_:queue:).md)
- [customAction(duration:action:)](scenekit/scnaction/customaction(duration:action:).md)
- [javaScriptAction(withScript:duration:)](scenekit/scnaction/javascriptaction(withscript:duration:).md)
