---
title: "setValue(_:at:)"
framework: gameplaykit
role: symbol
role_heading: Instance Method
path: "gameplaykit/gknoisemap/setvalue(_:at:)"
---

# setValue(_:at:)

Sets the value at the specified position in the noise map.

## Declaration

```swift
func setValue(_ value: Float, at position: vector_int2)
```

## Parameters

- `value`: The new value to set.
- `position`: A position in the noise map’s integer grid.

## Discussion

Discussion

## See Also

### Accessing Noise Values

- [value(at:)](gameplaykit/gknoisemap/value(at:).md)
- [interpolatedValue(at:)](gameplaykit/gknoisemap/interpolatedvalue(at:).md)
