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

# element::ageOverLifetime

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

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

## Return Value

A normalized value representing age divided by lifetime

## 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.

> Visual: ![Graph](element__ageOverLifetime)

---

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)