---
title: "group::elementActiveInGroup"
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/group/elementactiveingroup
---

# group::elementActiveInGroup

Returns the number of currently active elements in the group.

## Declaration

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

## Return Value

Return Value The count of active elements currently in the group

## Discussion

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. note:
