---
title: sampleCount
framework: gameplaykit
role: symbol
role_heading: Instance Property
path: gameplaykit/gknoisemap/samplecount
---

# sampleCount

The width and height of integer grid for which the noise map contains sampled noise values.

## Declaration

```swift
var sampleCount: vector_int2 { get }
```

## Discussion

Discussion This property is read-only; you define the origin of a noise map when creating it with the interpolatedValue(at:) initializer.

## See Also

### Inspecting a Noise Map

- [size](gameplaykit/gknoisemap/size.md)
- [origin](gameplaykit/gknoisemap/origin.md)
- [isSeamless](gameplaykit/gknoisemap/isseamless.md)
