<!--
{
  "availability" : [
    "Reality Composer Pro: -",
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ComputeGraph",
  "identifier" : "/documentation/ComputeGraph/ElementSpawnParameters/size",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Compute Graph"
    ],
    "preciseIdentifier" : "s:12ComputeGraph22ElementSpawnParametersV4sizes5SIMD2VySfGvp"
  },
  "title" : "size"
}
-->

# size

The initial size of the particle as a 2D vector representing width and height.

```
var size: SIMD2<Float> { get set }
```

## Discussion

For most particle systems, this represents the billboard size in world space units.

- `x` component: width of the particle
- `y` component: height of the particle

Equal values create square particles, while different values create rectangular particles.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)