<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/EntityGeometricPins/subscript(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Subscript",
  "symbol" : {
    "kind" : "Instance Subscript",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation19EntityGeometricPinsVyAA0D3PinVSgSScip"
  },
  "title" : "subscript(_:)"
}
-->

# subscript(_:)

Obtains a geometric pin the entity owns by name.

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

## Parameters

`name`

The name of an existing pin the entity owns.

## Return Value

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)