---
title: "group::groupIndexInSystem"
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/groupindexinsystem
---

# group::groupIndexInSystem

Returns the index of the current group within the particle system.

## Declaration

```swift
int group::groupIndexInSystem()
```

## Return Value

Return Value The zero-based index of this group in the system

## Discussion

Discussion Use this function to identify which group the current element belongs to, enabling group-specific behaviors and calculations across multiple groups. note:
