---
title: "element::ageOverLifetime"
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/ageoverlifetime
---

# element::ageOverLifetime

Returns the normalized age of the element as a ratio of its lifetime.

## Declaration

```swift
float element::ageOverLifetime()
```

## Return Value

Return Value A normalized value representing age divided by lifetime

## Discussion

Discussion Use this function to get a value between 0.0 (just created) and 1.0 (end of life), which is ideal for interpolating properties over the element’s lifetime. note:
