---
title: isEnabled
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/sklightnode/isenabled
---

# isEnabled

A Boolean value that indicates whether the node is casting light.

## Declaration

```swift
var isEnabled: Bool { get set }
```

## Discussion

Discussion If the value is true, the light is enabled and affects sprite nodes in the scene. The default is true.

## See Also

### Determining Whether a Light Node Is Active

- [categoryBitMask](spritekit/sklightnode/categorybitmask.md)
