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

# element::size

Returns the current size of the element.

```
float2 element::size()
```

## Return Value

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

## Discussion

Use this function to read the element’s dimensions in meters,
which represent its width and height.

> Visual: ![Graph](element__size)

---

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)