---
title: hide()
framework: spritekit
role: symbol
role_heading: Type Method
path: spritekit/skaction/hide()
---

# hide()

Creates an action that hides a node.

## Declaration

```swift
class func hide() -> SKAction
```

## Return Value

Return Value A new action object.

## Discussion

Discussion This action has an instantaneous duration. When the action executes, the node’s isHidden property is set to true. This action is reversible; the reversed action shows the node.

## See Also

### Controlling Node Visibility

- [unhide()](spritekit/skaction/unhide().md)
