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

# group::elementActiveInGroup

Returns the number of currently active elements in the group.

```
int group::elementActiveInGroup()
```

## Return Value

The count of active elements currently in the group

## Discussion

Use this function to determine how many particles are currently alive in the group,
which may be less than the maximum if some particles have expired or not yet spawned.

> Visual: ![Graph](group__elementActiveInGroup)

---

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)