---
title: "subscript(_:)"
framework: realitykit
role: symbol
role_heading: Instance Subscript
path: "realitykit/entitygeometricpins/subscript(_:)"
---

# subscript(_:)

Obtains a geometric pin the entity owns by name.

## Declaration

```swift
@MainActor subscript(name: String) -> GeometricPin? { get }
```

## Parameters

- `name`: The name of an existing pin the entity owns.

## Return Value

Return Value The pin that associates with the name, or nil if no pin with a matching name is found.
