---
title: "subscript(_:)"
framework: gamecontroller
role: symbol
role_heading: Instance Subscript
path: "gamecontroller/gcphysicalinputelementcollection-swift.struct/subscript(_:)-3womp"
---

# subscript(_:)

Accesses the collection’s elements using the element’s name.

## Declaration

```swift
subscript<Name>(elementName: Name) -> Name.PhysicalInputElement? where Name : GCPhysicalInputElementTypedName { get }
```
