---
title: ElementSpawnParameters
framework: Compute Graph
role: symbol
role_heading: Structure
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: computegraph/elementspawnparameters
---

# ElementSpawnParameters

Parameters used to configure the initial state of a particle when it’s spawned in the simulation.

## Declaration

```swift
struct ElementSpawnParameters
```

## Overview

Overview The values specified become initial values in the Initialization stage, which can read or overwrite the values. Usage let params = ElementSpawnParameters(     position: SIMD3<Float>(0, 1, 0),     velocity: SIMD3<Float>(0, -1, 0),     size: SIMD2<Float>(0.02, 0.02),     color: SIMD4<Float>(1, 0.5, 0, 1),     lifetime: 2.0 )

## Topics

### Initializers

- [init(position:velocity:size:color:lifetime:)](computegraph/elementspawnparameters/init(position:velocity:size:color:lifetime:).md)

### Instance Properties

- [color](computegraph/elementspawnparameters/color.md)
- [lifetime](computegraph/elementspawnparameters/lifetime.md)
- [position](computegraph/elementspawnparameters/position.md)
- [size](computegraph/elementspawnparameters/size.md)
- [velocity](computegraph/elementspawnparameters/velocity.md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Elements and particles

- [ElementGrouping](computegraph/elementgrouping.md)
- [Sorting](computegraph/sorting.md)
