---
title: "set(named:position:orientation:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/entitygeometricpins/set(named:position:orientation:)"
---

# set(named:position:orientation:)

Creates and adds a geometric pin to the entity, and returns the entity geometric pin.

## Declaration

```swift
@discardableResult @MainActor func set(named name: String, position: SIMD3<Float> = SIMD3<Float>(0, 0, 0), orientation: simd_quatf = simd_quatf(ix: 0, iy: 0, iz: 0, r: 1)) -> GeometricPin
```

## Parameters

- `name`: The name of the pin in the namespace of the owning entity.
- `position`: The position of the pin, in local space of the owning entity.
- `orientation`: The orientation of the pin, in local space of the owning entity.

## Return Value

Return Value A GeometricPin, identifying the newly added reference frame on the Entity.

## Discussion

Discussion The pin is added to the entity’s GeometricPinsComponent.
