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

# subscript(_:)

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

## Declaration

```swift
subscript<Name>(elementName: Name) -> (any GCPhysicalInputElement)? where T == any GCPhysicalInputElement, Name : GCPhysicalInputElementTypedName { get }
```
