---
title: "property(forKey:)"
framework: scenekit
role: symbol
role_heading: Instance Method
path: "scenekit/scnscenesource/property(forkey:)"
---

# property(forKey:)

Returns metadata about the scene.

## Declaration

```swift
func property(forKey key: String) -> Any?
```

## Parameters

- `key`: A constant identifying a metadata property of the scene source. See doc://com.apple.scenekit/documentation/SceneKit/scene-source-properties for available keys and the formats of their values.

## Return Value

Return Value The value for the metadata property, or nil if no value exists for the specified property.

## Discussion

Discussion This method returns information about the scene that is defined in the file but is not directly referenced by the scene.

## See Also

### Getting Information about the Scene

- [url](scenekit/scnscenesource/url.md)
- [data](scenekit/scnscenesource/data.md)
