---
title: "init(node:)"
framework: gameplaykit
role: symbol
role_heading: Initializer
path: "gameplaykit/gksknodecomponent/init(node:)"
---

# init(node:)

Initializes a component to manage the specified SpriteKit node.

## Declaration

```swift
init(node: SKNode)
```

## Parameters

- `node`: The SpriteKit node to be managed by the component.

## Return Value

Return Value A new SpriteKit component.

## Discussion

Discussion When you add this component to a GKEntity object, the component automatically sets the entity property of its SpriteKit node to point to that entity.
