---
title: name
framework: scenekit
role: symbol
role_heading: Instance Property
path: scenekit/scnlight/name
---

# name

A name associated with the light.

## Declaration

```swift
var name: String? { get set }
```

## Discussion

Discussion You can provide a descriptive name for a light to make managing your scene graph easier. Lights loaded from a scene file may have names assigned by an artist using a 3D authoring tool. To examine lights in a scene file without loading its scene graph, use the SCNSceneSource class. Light names are saved when you export a scene to a file using its write(to:options:delegate:progressHandler:) method. Light names also appear in the Xcode scene editor.

## See Also

### Managing Light Attributes

- [attribute(forKey:)](scenekit/scnlight/attribute(forkey:).md)
- [setAttribute(_:forKey:)](scenekit/scnlight/setattribute(_:forkey:).md)
- [Lighting Attribute Keys](scenekit/lighting-attribute-keys.md)
