---
title: "element::size"
framework: Compute Graph
role: symbol
role_heading: Function
platforms: [iOS 27.0+, iPadOS 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: computegraph/element/size
---

# element::size

Returns the current size of the element.

## Declaration

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

## Return Value

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

## Discussion

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