<!--
{
  "availability" : [
    "Reality Composer Pro: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "ComputeGraph",
  "identifier" : "/documentation/ComputeGraph/module/setSize",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Compute Graph"
    ],
    "preciseIdentifier" : "module::setSize"
  },
  "title" : "module::setSize"
}
-->

# module::setSize

Sets the size of an element to the specified dimensions. Size is in meters.

```
void module::setSize(float2 size)
```

## Parameters

`size`

The new size as a 2D vector (width, height)

## Discussion> Visual: ![Graph](module__setSize)

---

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)